SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/01/2006, 08:03 PM   #1
Mike
Little Clucker
 
Join Date: Jan 1970
Posts: 20
Reputation: 46
Default General Reference

Links to online resources:

- http://wiki.sa-mp.com/wiki/Main_Page - SA-MP wiki
- http://wiki.sa-mp.com/wiki/Scripting_Basics
- http://wiki.sa-mp.com/wiki/Scripting_Functions
- http://wiki.sa-mp.com/wiki/Scripting_Callbacks
- http://wiki.sa-mp.com/wiki/PAWN_tutorial_1
- http://wiki.sa-mp.com/wiki/PAWN_tutorial_2
- http://wiki.amxmodx.org/index.php/Pawn_Tutorial - This guide is rather hardcoded to AMX Mod X, but still good
- http://pawn.pastebin.com/ - paste code here for debugging
- http://irc://irc.gamesurge.net.com/sa-mp.scripting - official IRC scripting channel
- http://stephantom2.st.funpic.de/experiments/samp/ - unofficial SA-MP PAWN documentation
- http://www.gtamodding.com/index.php?title=Category:PAWN - some basic tutorials and other bits
- http://www.compuphase.com/pawn/pawn.htm - PAWN homepage
- http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS - List of library documents
- http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf - pawn-lang.pdf

(Reply if you have anything useful to be added/changed)

Interiors
Look down

GameText Styles
  • 1
    Notes: Fades out automatically after 6 secs. If you have a time setting longer than that, it will re-appear after fading out and repeat until the time ends.
  • 2

    Notes: Doesn't disappear.
  • 3

  • 4

  • 5
Notes: Displays for 3 seconds, regardless of what time you set.
  • 6


GameText Strings
~n~ - New line
~r~ - Red
~g~ - Green
~b~ - Blue
~w~ - White
~y~ - Yellow

Weapons
0 - Unarmed
1 - Brass Knuckles
2 - Golf Club
3 - Night Stick
4 - Knife
5 - Baseball Bat
6 - Shovel
7 - Pool cue
8 - Katana
9 - Chainsaw
10 - Purple Dildo
11 - White Dildo
12 - Long White Dildo
13 - White Dildo 2
14 - Flowers
15 - Cane
16 - Grenades
17 - Tear Gas
18 - Molotovs
22 - Pistol
23 - Silenced Pistol
24 - Desert Eagle
25 - Shotgun
26 - Sawn Off Shotgun
27 - Combat Shotgun
28 - Micro Uzi (Mac 10)
29 - MP5
30 - AK47
31 - M4
32 - Tec9
33 - Rifle
34 - Sniper Rifle
35 - RPG
36 - Missile Launcher
37 - Flame Thrower
38 - Minigun
39 - Sachel Charges
40 - Detonator
41 - Spray Paint
42 - Fire Extinguisher
43 - Camera
44 - Nightvision Goggles
45 - Thermal Goggles
46 - Parachute

(Credit to Opius)

(Edit by spookie):
$GTASA\data\AudioEvents.txt seems to contain a list of sound ids.
Animation Reference: http://www.sa-mp.com/scriptingRC3/SA_AnimList.txt

_________________________________________________

0.2 information topic:

Debug Mode:

When you load debug it goes into single player - this is now correct. Commands still work however F11 and F12 crash currently. There is also a debug script mode:

Topic

Internal Errors:

If you get these reinstall, it means SA:MP has detected mods and is refusing to let you play as mods are not allowed.

Quote:
Originally Posted by aru
Internal Error scenarios are raised when you have Mods.

The number provided is an internal state value, but the cause is the same.

One of your files is modded, this could be one of SA:MP's files or one of your game files.

If you have an internal error, we highly recommend you uninstall GTA:SA, delete the folder, reinstall SA, and then install the 0.2 files.
Connection Messages:

These have been removed as if you don't want them they're annoying and if you do want them they're very easy to add via PAWN.

Animations:

Topic

SetTimerEx, CallRemoteFunction and CallLocalFunction:

These require a special type of format parameter to describe the parameters you are passing. These are the same parameters as are used by sscanf (which is FAR better than strtok for getting parameters from commands).

A full description is available here.

Nightvision/Infrared:

These have never once been mentioned by the dev team, I don't know why so many people think they work because they don't.

Trams:

Trams are not fully natively supported by SA:MP however there is code to assist:

Topic

Text Draw:

A long standing bane of the SCM coding scene, while relatively simple to get working it can take hours of tweaking to get to look right.

Topic

Number Plates:

Basically - set the number plate and respawn the vehicle.

Topic

Gravity:

Default gravity is 0.008 NOT 1.

Tyre Popping:

Readded.

Generic Limits:
  • Players - 500
  • Vehicle Models - Unlimited
  • Vehicles - 2000
  • Pickups - 2048 (dynamic)
  • Objects - 400 (dynamic)
  • Text Draws - 2048 (dynamic)
  • Gang Zones - 1024 (dynamic)
  • Menus - 128 (dynamic)

Compatibility Issues:

Compiler compatibility topic.

OnPlayerDisconnect now has a reason parameter:

public OnPlayerDisconnect(playerid, reason) {}

0 = Timeout
1 = Left
2 = Kicked

SetPlayerSkin is now persistent across respawns.

Weapon Slot Weapons:
  • 0 - 0, 1
  • 1 - 2, 3, 4, 5, 6, 7, 8, 9
  • 2 - 22, 23, 24
  • 3 - 25, 26, 27
  • 4 - 28, 29, 32
  • 5 - 30, 31
  • 6 - 33, 34
  • 7 - 35, 36, 37, 38
  • 8 - 16, 17, 18, 39
  • 9 - 41, 42, 43
  • 10 - 10, 11, 12, 13, 14, 15
  • 11 - 44, 45, 46
  • 12 - 40

Other:

This is basically a cross between an FAQ and General Reference, any other information you feel is relevant please post.

Last edited by dugi; 30/11/2010 at 02:39 PM.
Mike is offline   Reply With Quote
Old 04/04/2006, 10:32 AM   #2
Simon
Gangsta
 
Join Date: Jan 2006
Location: New Zealand
Posts: 530
Reputation: 54
Default General Reference

6 is LSPD Interior.

EDIT: I've decided a better name for this interior would be Generic Police Interior. As if you got the co-ords from the LSPD station and set a player to spawn from it you'd spawn inside all fancy and well - but the marker takes you to Red County Police Station; so I assume that the game does something when you enter through the marker to make sure you go out the correct door.

So in short... this "is" the LSPD Interior but it is also used as an interior for other police stations. Spawning in here then walking outside takes you to Red County..
Simon is offline   Reply With Quote
Old 04/04/2006, 10:48 AM   #3
RayW
Beta Tester
 
RayW's Avatar
 
Join Date: May 2005
Location: Peoria, IL, USA
Posts: 822
Reputation: 319
Default General Reference

Well stacked Pizza - 5
Tatoo Shop - 16
CJ's House - 3
__________________


Rig: i7 4770k @ 4.7GHz De-Lidded - MSI Z87-GD65 - 8GB DDR3 - 250GB Samsung EVO - Sapphire R9 290 4GB - Corsair H100i
RayW is offline   Reply With Quote
Old 04/04/2006, 07:42 PM   #4
Postality
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default General Reference

I believe 14 is The Johnson House according to Cam's San Fierro TDM Script.
Postality is offline   Reply With Quote
Old 05/04/2006, 02:34 PM   #5
Mount
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default General Reference

CARS:

400 landstal
401 bravura
402 buffalo
403 linerun
404 peren
405 sentinel
406 dumper
407 firetruk
408 trash
409 stretch
410 manana
411 infernus
412 voodoo
413 pony
414 mule
415 cheetah
416 ambulan
417 leviathn
418 moonbeam
419 esperant
420 taxi
421 washing
422 bobcat
423 mrwhoop
424 bfinject
425 hunter
426 premier
427 enforcer
428 securica
429 banshee
430 predator
431 bus
432 rhino
433 barracks
434 hotknife
435 artict1
436 previon
437 coach
438 cabbie
439 stallion
440 rumpo
441 rcbandit
442 romero
443 packer
444 monster
445 admiral
446 squalo
447 seaspar
448 pizzaboy
449 tram
450 artict2
451 turismo
452 speeder
453 reefer
454 tropic
455 flatbed
456 yankee
457 caddy
458 solair
459 topfun
460 skimmer
461 pcj600
462 faggio
463 freeway
464 rcbaron
465 rcraider
466 glendale
467 oceanic
468 sanchez
469 sparrow
470 patriot
471 quad
472 coastg
473 dinghy
474 hermes
475 sabre
476 rustler
477 zr350
478 walton
479 regina
480 comet
481 bmx
482 burrito
483 camper
484 marquis
485 baggage
486 dozer
487 maverick
488 vcnmav
489 rancher
490 fbiranch
491 virgo
492 greenwoo
493 jetmax
494 hotring
495 sandking
496 blistac
497 polmav
498 boxville
499 benson
500 mesa
501 rcgoblin
502 hotrina
503 hotrinb
504 bloodra
505 rnchlure
506 supergt
507 elegant
508 journey
509 bike
510 mtbike
511 beagle
512 cropdust
513 stunt
514 petro
515 rdtrain
516 nebula
517 majestic
518 buccanee
519 shamal
520 hydra
521 fcr900
522 nrg500
523 copbike
524 cement
525 towtruck
526 fortune
527 cadrona
528 fbitruck
529 willard
530 forklift
531 tractor
532 combine
533 feltzer
534 remingtn
535 slamvan
536 blade
537 freight
538 streak
539 vortex
540 vincent
541 bullet
542 clover
543 sadler
544 firela
545 hustler
546 intruder
547 primo
548 cargobob
549 tampa
550 sunrise
551 merit
552 utility
553 nevada
554 yosemite
555 windsor
556 monstera
557 monsterb
558 uranus
559 jester
560 sultan
561 stratum
562 elegy
563 raindanc
564 rctiger
565 flash
566 tahoma
567 savanna
568 bandito
569 freiflat
570 streakc
571 kart
572 mower
573 duneride
574 sweeper
575 broadway
576 tornado
577 at400
578 dft30
579 huntley
580 stafford
581 bf400
582 newsvan
583 tug
584 petrotr
585 emperor
586 wayfarer
587 euros
588 hotdog
589 club
590 freibox
591 artict3
592 androm
593 dodo
594 rccam
595 launch
596 copcarla
597 copcarsf
598 copcarvg
599 copcarru
600 picador
601 swatvan
602 alpha
603 phoenix
604 glen*****
605 sadl*****
606 bagboxa
607 bagboxb
608 tugstair
609 boxburg
610 farmtr1
611 utiltr1
Mount is offline   Reply With Quote
Old 06/04/2006, 09:31 PM   #6
Denver
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default car colors

Car Colors

Denver is offline   Reply With Quote
Old 10/04/2006, 06:20 PM   #7
webspy
Little Clucker
 
Join Date: Apr 2006
Posts: 1
Reputation: 0
Default Sound IDs

Some sound IDs:

1052 - 1058 = various blips
1020 - 1022, 1035 = heavy machinery
1062, 1068 = music
webspy is offline   Reply With Quote
Old 10/04/2006, 06:46 PM   #8
ARMax
Little Clucker
 
Join Date: Apr 2006
Posts: 7
Reputation: 0
Default General Reference

List Of Heavens And Interiors:

Heaven 1 (Liberty Heaven):
Ammunation V2
Burglary House X3
Cafe
Caligulas Casino
Denise's Sex Place
Jet
Liberty City
Sweet's House
San Fierro Garage
Sindacco Abatoir
Sub Urban
Transfenders
Trials Stadium
Warehouse 2
Welcome Pump, The
Wu Zi Mu's

Heaven 2 (B Dups Crack Heaven):
Angel Pine Trailer
B Dups Crack Palace
Big Smoke's Crack Palace
Burglary House X2
Burglary House X9
Burglary House X10
Katie's Sex Place
Loco Low Co.
Pig Pen, The
Reece's Barbershop
Ryder's House

Heaven 3 (Ho Heaven):
B Dups Apartment
Bike School
Big Spread Ranch, The
Brothel
Brothel 2
Budget Inn Motel Room
Burglary House X1
Gay Gordo's Barbershop
Helena's Sex Place
Inside Track Betting
Jizzy's Pleasure Domes
LV Tattoo Parlour
LVPD HQ
OG Locs House
Pro-Laps
Planning Department
Record Label Hallway
Sex Shop
Wheel Arch Angels

Heaven 4 (Thief Heaven):
24/7 (V5)
Ammu-Nation (Palamino)
Burglary House X12
Burglary House X13
Burglary House X15
Diner 2
Dirtbike Stadium
Michelle's Sex Place

Heaven 5 (Gym Heaven):
Barbara's Sex Place
Burglary House X11
Burglary House X16
Burglary House X17
Crack Den
Diner
Ganton Gym
Madd Dogg's Mansion
Pizza Stack
Victim

Heaven 6 (RC Heaven)(Why?):
LSPD HQ
Marital Arts Gym
Millie's Bedroom

Heaven 7 (Ammunation Heaven):
8-Track Stadium
Ammu-Nation (2 Floors)
Burglary House X4
Below the Belt Gym

Heaven 8 (Burning Heaven):
Burning Desire House

Heaven 9 (Cluckin Heaven):
None.. I Can Imagine Clucking Bell Should Be Here...

Heaven 10 (Burgershot Heaven):
24/7 (V2)
Abandoned AC Tower
Burgershot
Burglary House X14
Four Dragons, The
SFPD HQ

Heaven 11 (Misty Heaven):
None.. Mistys Bar Maybe...

Heaven 12 (Macisla Heaven):
Budget Inn Motel Room
Casino
Macisla's Barbershop
Unused LS Safehouse

Heaven 13 (Normal World / Regular Heaven)
None... Its Normal World

Heaven 14 (Wardrobe Heaven):
Didier Sachs
Francis Int. (Front ext.)
Francis Int. (Baggage Claim/Ticket Sales)
Kickstart Stadium
Wardrobe

Heaven 15 (Binco Heaven):
Binco
Blood Bowl Stadium
Burglary House X5
Burglary House X6
Burglary House X7
Burglary House X8

Heaven 16 (LS Tattoo Heaven):
24/7 (V4)
LS Tattoo Parlour

Heaven 17 (Rusty Heaven):
24/7 (V1)
Club
Rusty Brown's
SF Hidden Tattoo Parlour

Heaven 18 (Zip Heaven):
24/7 (V3)
Atrium
Lil Probe Inn (Not Documented)
Warehouse
Zip
ARMax is offline   Reply With Quote
Old 11/04/2006, 01:17 AM   #9
jbeta
Little Clucker
 
Join Date: Apr 2005
Posts: 4
Reputation: 0
Default General Reference

Ran a script through sound IDs 0-3333, and found the following sounds:

Some sound IDs

1002: weak hit
1009: crash
1020: constant machinery noise
1021: machinery
1022: motor, stopping
1027: weaker hit
1035: garage door opening
1039: ?
1052: blip A
1053: blip B
1054: blip A (same as 1052)
1055: blip B (same as 1053)
1056: race: green light sound
1057: race: red light sound (start sound)
1058: selection sound
1062: *background music*
1068: *background music*
1076: *background music*
1083: map: place a marker
1084: map: remove a marker
1085: blip C
1095: loud hit
1097: *background music*
1100: metallic fence rattle A
1101: metallic fence rattle B
1130: punch A
1131: hit wooden object?
1132: camera click
1133: machinery
1134: spray can
1135: hit
1136: punch B
1137: high-pitch blip A
1138: high-pitch blip A
1139: high-pitch blip A
1140: crash A
1141: crash B
1142: stadium background noise
1144: splash
1145: ?
1147: car horn
1148: crash C
1149: blip (same as 1052?)
1150: selection sound
1153: garage door opening (same as 1035)
1159: explosion
1163: two-feet stomp (after jumping)
1165: bigger garage (hangar?) doors
1183: *background music*
1185: *background music*
1187: *background music*
1190: slap
jbeta is offline   Reply With Quote
Old 12/04/2006, 01:35 PM   #10
Postality
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default General Reference

Here's the pickup ID's for health, armor, and adrenaline pill:

1240 health
1241 adrenaline pill
1242 armor

enjoy.
Postality is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a soldier aotumaticly be general when the general dies ? AlbanianGuy Scripting Help 35 13/05/2012 03:35 PM
Help general [ZX]_Whitewolf Help Archive 0 15/06/2010 11:04 PM
A Full Pawn Reference Jonni8 General 4 20/05/2010 10:35 PM
Team Balancer -(Fixed but someone might want to read for reference) [HLF]Southclaw Help Archive 4 26/01/2010 08:24 AM
[SOLVED!] Strings as reference parameters... XPlatform Plugin Development 4 23/08/2009 10:40 PM


All times are GMT. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.