Scripting Basics
From SA-MP Wiki
(List of links)
< Scripting BasicsThe following pages link to here:
View (previous 500) (next 500) (20 | 50 | 100 | 250 | 500).- PAWN tutorial
- Debug Guide
- Scripting Basics
- Changing player's score under misc conditions
- Fopen
- Script Examples
- Using strcmp()
- Admin panel
- File Functions
- Floatround
- Template:Scripting
- AddPlayerClass
- Creating Join and Leave Messages
- Category:Scripting Functions
- AddPlayerClassEx
- AddStaticPickup
- AddStaticVehicle
- Ban
- ChangeVehicleColor
- GameTextForAll
- SpawnPlayer
- ShowPlayerMarkers
- ShowNameTags
- SetTeamCount
- SetSpawnInfo
- SetPlayerTeam
- SetPlayerSkin
- SetPlayerMapIcon
- GetPlayerTeam
- GetPlayerState
- GetPlayerPos
- GetPlayerName
- SendClientMessage
- SendClientMessageToAll
- IsPlayerAdmin
- IsPlayerConnected
- EnableZoneNames
- GetPlayerIp
- Kick
- AddVehicleComponent
- AllowInteriorWeapons
- EnableTirePopping
- BanEx
- GetPlayerPing
- GetPlayerScore
- SetPlayerScore
- CreateExplosion
- GameTextForPlayer
- GetWeaponName
- GetPlayerArmour
- SetPlayerArmour
- SendDeathMessage
- GetPlayerMoney
- ResetPlayerMoney
- GivePlayerMoney
- SetPlayerHealth
- GetPlayerHealth
- DisableInteriorEnterExits
- AllowAdminTeleport
- How to make spawn colors
- TextDrawCreate
- Animations
- CreateVehicle
- CreateObject
- SetObjectPos
- GetObjectPos
- SetObjectRot
- GetObjectRot
- IsValidObject
- DestroyObject
- MoveObject
- StopObject
- CreatePlayerObject
- SetPlayerObjectPos
- GetPlayerObjectPos
- SetPlayerObjectRot
- GetPlayerObjectRot
- IsValidPlayerObject
- DestroyPlayerObject
- MovePlayerObject
- StopPlayerObject
- AttachObjectToPlayer
- AttachPlayerObjectToPlayer
- SetPlayerPosFindZ
- SetPlayerPos
- SetPlayerFacingAngle
- GetPlayerFacingAngle
- SetPlayerInterior
- GetPlayerInterior
- GetPlayerAmmo
- SetPlayerAmmo
- SetPlayerColor
- GetPlayerColor
- GetPlayerSkin
- GivePlayerWeapon
- ResetPlayerWeapons
- GetPlayerWeaponData
- SetPlayerName
- ForceClassSelection
- GetPlayerWeapon
- GetPlayerKeys
- SetPlayerTime
- GetPlayerTime
- TogglePlayerClock
- SetPlayerWeather
- GetPlayerWantedLevel
- SetPlayerWantedLevel
- SetPlayerDisabledWeapons
- PutPlayerInVehicle
- GetPlayerVehicleID
- RemovePlayerFromVehicle
- DestroyVehicle
- GetVehiclePos
- TogglePlayerControllable
- PlayerPlaySound
- ApplyAnimation
- ClearAnimations
- GetPlayerSpecialAction
- SetPlayerSpecialAction
- SetVehiclePos
- SetPlayerCheckpoint
- DisablePlayerCheckpoint
- SetPlayerRaceCheckpoint
- DisablePlayerRaceCheckpoint
- SetPlayerWorldBounds
- ShowPlayerNameTagForPlayer
- SetPlayerMarkerForPlayer
- RemovePlayerMapIcon
- SetPlayerCameraPos
- SetPlayerCameraLookAt
- SetCameraBehindPlayer
- AllowPlayerTeleport
- IsPlayerInVehicle
- IsPlayerInAnyVehicle
- IsPlayerInCheckpoint
- IsPlayerInRaceCheckpoint
- GetPlayerVirtualWorld
- SetPlayerVirtualWorld
- EnableStuntBonusForPlayer
- EnableStuntBonusForAll
- TogglePlayerSpectating
- PlayerSpectatePlayer
- PlayerSpectateVehicle
- GetVehicleZAngle
- SetVehicleZAngle
- SetVehicleParamsForPlayer
- SetVehicleToRespawn
- LinkVehicleToInterior
- RemoveVehicleComponent
- ChangeVehiclePaintjob
- SetVehicleHealth
- GetVehicleHealth
- AttachTrailerToVehicle
- DetachTrailerFromVehicle
- IsTrailerAttachedToVehicle
- GetVehicleTrailer
- SetVehicleNumberPlate
- GetVehicleModel
- SetVehicleVirtualWorld
- GetVehicleVirtualWorld
- Printf
- Format
- SendPlayerMessageToPlayer
- SendPlayerMessageToAll
- SetTimerEx
- SetTimer
- KillTimer
- GetMaxPlayers
- LimitGlobalChatRadius
- SetGameModeText
- AddStaticVehicleEx
- CreatePickup
- DestroyPickup
- GameModeExit
- SetWorldTime
- SetWeather
- SetGravity
- SetDeathDropAmount
- UsePlayerPedAnims
- SetDisabledWeapons
- SetNameTagDrawDistance
- SendRconCommand
- GetServerVarAsString
- GetServerVarAsInt
- GetServerVarAsBool
- TextDrawDestroy
- TextDrawLetterSize
- TextDrawTextSize
- TextDrawAlignment
- TextDrawColor
- TextDrawUseBox
- TextDrawBoxColor
- TextDrawSetString
- TextDrawHideForAll
- TextDrawShowForAll
- TextDrawHideForPlayer
- TextDrawShowForPlayer
- TextDrawSetProportional
- TextDrawFont
- TextDrawBackgroundColor
- TextDrawSetOutline
- TextDrawSetShadow
- OnPlayerCommandText
- Category:Scripting Callbacks
- OnGameModeInit
- OnGameModeExit
- OnFilterScriptInit
- OnFilterScriptExit
- OnPlayerConnect
- OnPlayerDisconnect
- OnPlayerSpawn
- OnPlayerDeath
- OnVehicleSpawn
- Strcmp
- OnPlayerKeyStateChange
- OnPlayerText
- Category:Objects
- Creating a simple Menu
- OnPlayerEnterCheckpoint
- Creating a normal admin script
- Main Page ES
- Control Structures
- Code Snippets
- Advanced Structures
- Fast Commands
- Saving car mods
- Getdate
- Deleteproperty
- Fblockread
- How to read from INI files
- Random
- Tickcount
- Gettime
- SetMenuColumnHeader
- CreateMenu
- Creating A Simple Administration FilterScript
- AddMenuItem
- PAWN for Beginners
- Areacheck
- OnPlayerPickUpPickup
- Tutorial of strtok
- OnPlayerLeaveCheckpoint
- OnPlayerPrivmsg
- OnVehicleDeath
- OnPlayerRequestClass
- OnPlayerEnterVehicle
- OnPlayerExitVehicle
- Main Page CS
- Fclose
- Keywords
- Keywords:Statements
- Keywords:Operators
- Keywords:Directives
- Keywords:Initialisers
- Setproperty
- Getproperty
- Existproperty
- How to password protect skins
- ShowMenuForPlayer
- Random Messages
- DestroyMenu
- Automatic Gates
- OnPlayerTeamPrivmsg
- OnPlayerEnterRaceCheckpoint
- OnPlayerLeaveRaceCheckpoint
- OnPlayerUpdate
- Sscanf
- CallRemoteFunction
- PickupGuide
- Interior cars
- CallLocalFunction
- GangZoneShowForPlayer
- OnPlayerStateChange
- OnRconCommand
- OnObjectMoved
- OnPlayerObjectMoved
- OnVehicleMod
- OnPlayerInteriorChange
- OnVehiclePaintjob
- OnVehicleRespray
- OnPlayerExitedMenu
- OnPlayerSelectedMenuRow
- HideMenuForPlayer
- GetTickCount
- GangZoneCreate
- GangZoneDestroy
- GangZoneShowForAll
- GangZoneHideForPlayer
- GangZoneHideForAll
- GangZoneFlashForPlayer
- GangZoneFlashForAll
- GangZoneStopFlashForPlayer
- GangZoneStopFlashForAll
- Fwrite
- NEWMAINPAGE
- Main Page
- OnPlayerRequestSpawn
- AdminSkins
- GetPlayerMenu
- Script Examples DE
- Function
- Strlib:str-replace
- Strlib:str-ireplace
- Strlib:str-pad
- Db open
- Db close
- Db query
- Db num rows
- Db free result
- Db get field
- Db num fields
- SetPlayerFightingStyle
- GetPlayerFightingStyle
- SetPlayerSkillLevel
- IsPlayerInRangeOfPoint
- IsPlayerStreamedIn
- GetPlayerDrunkLevel
- SetPlayerVelocity
- GetPlayerVelocity
- SetVehicleVelocity
- GetVehicleVelocity
- PlayCrimeReportForPlayer
- SetPlayerShopName
- StartRecordingPlayerData
- StopRecordingPlayerData
- RepairVehicle
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnVehicleStreamIn
- OnVehicleStreamOut
- GetVehicleComponentInSlot
- NPC:OnPlayerStreamIn
- NPC:OnPlayerStreamOut
- NPC:OnVehicleStreamIn
- NPC:OnVehicleStreamOut
- NPC:OnRecordingPlaybackEnd
- NPC:OnPlayerDeath
- IsPlayerNPC
- ConnectNPC
- NPC:OnPlayerText
- NPC:OnNPCEnterVehicle
- NPC:OnNPCExitVehicle
- NPC:SendChat
- NPC:SendCommand
- NPC:OnNPCModeExit
- NPC:OnNPCModeInit
- NPC:OnNPCSpawn
- NPC:OnClientMessage
- GetPlayerVehicleSeat
- NPC:StartRecordingPlayback
- NPC:StopRecordingPlayback
- NPC:OnNPCConnect
- NPC:OnNPCDisconnect
- SetPlayerDrunkLevel
- Create3DTextLabel
- Delete3DTextLabel
- Attach3DTextLabelToPlayer
- Attach3DTextLabelToVehicle
- Update3DTextLabelText
- DeletePlayer3DTextLabel
- UpdatePlayer3DTextLabelText
- CreatePlayer3DTextLabel
- SetPlayerChatBubble
- NPC:PauseRecordingPlayback
- NPC:GetDistanceFromMeToPoint
- NPC:ResumeRecordingPlayback
- NPC:SetMyPos
- NPC:GetMyPos
- NPC:GetMyFacingAngle
- NPC:SetMyFacingAngle
- NPC:IsVehicleStreamedIn
- NPC:IsPlayerStreamedIn
- IsVehicleStreamedIn
- GetVehicleComponentType
- OnRconLoginAttempt
- DisableNameTagLOS
- SetPlayerArmedWeapon
- ShowPlayerDialog
- OnDialogResponse
- OnPlayerClickPlayer
- DisableMenuRow
- DisableMenu
- Fremove
- Fexist
- Flength
- OnEnterExitModShop
- GetPlayerSurfingVehicleID
- Strfind
- Strdel
- Strins
- Strlen
- Strmid
- Strval
- Strpack
- Strcat
- Fread
- How to Create a Dialog
- User:FeeL
- Velocity Tutorial
- Template:Scripting SV
- Memcpy
- Floatround method
- Fseek
- Fblockwrite
- Fgetchar
- Fmatch
- Fputchar
- Ftemp
- Float
- Floatabs
- Floatadd
- Floatcmp
- Floatcos
- Floatfract
- Floatlog
- Floatmul
- Floatpower
- Floatsin
- Floatsqroot
- Floatsub
- Floatstr
- Ispacked
- Strunpack
- Uudecode
- Valstr
- Uuencode
- Floatdiv
- El:Script Examples
- GetPlayerWeaponState
- GetPlayerCameraPos
- LimitPlayerMarkerRadius
- GetPlayerCameraFrontVector
- GetPlayerCameraUpVector
- OnVehicleDamageStatusUpdate
- UpdateVehicleDamageStatus
- GetVehicleDamageStatus
- GetPVarInt
- SetPVarInt
- GetPVarString
- DeletePVar
- SetPVarString
- SetPVarFloat
- GetPVarFloat
- AllowAdminTeleport CS
- GetPVarType
- AttachTrailerToVehicle TR
- Main Page TR
- AddMenuItem HU
- GetVehicleHealth TR
- IsPlayerStreamedIn TR
- GetVehicleDamageStatus TR
- Floattan
- AddPlayerClass TR
- Db next row
- Db get field assoc
- Db field name
- Main Page NO
- Template:Scripting NO
- SetVehicleVelocity NO
- GetVehicleVelocity NO
- ResetPlayerWeaponsEx
- GetVehicleModel TR
- 첫 페이지
- Main Page ko
- Create3DTextLabel KO
- Update3DTextLabelText KO
- CreatePlayer3DTextLabel KO
- UpdatePlayer3DTextLabelText KO
- Main Page IT
- SetPlayerHoldingObject
- StopPlayerHoldingObject
- SetVehicleAngularVelocity
- GetVehicleRotationQuat
- GetPlayerAnimationIndex
- GetAnimationName
- HTTP
- PlayerPlaySound IT
- PlayCrimeReportForPlayer IT
- IsPlayerHoldingObject
- Kick RO
- ShowPlayerDialog IT
- TextDrawShowForPlayer IT
- Ban RO
- Escaping Strings SQLite
- SetVehicleParamsEx
- ManualVehicleEngineAndLights
- SetPlayerAttachedObject
- RemovePlayerAttachedObject
- IsPlayerAttachedObjectSlotUsed
- AttachObjectToVehicle
- GetVehicleParamsEx
- Scripting Basics PT
- AddStaticVehicle ES
- AddStaticVehicle TR
- OnVehicleDamageStatusUpdate TR
- ManualVehicleEngineAndLights TR
- SetPlayerAttachedObject TR
- CreateObject Sk
- CreateVehicle Sk