All pastes #591474 Raw Edit

PAWN functions

public text v1 · immutable
#591474 ·published 2007-06-27 07:27 UTC
rendered paste body
// Here are all of PAWN's functions, excluding: SetTimer, SetTimerEx, KillTimer, CallRemoteFunction, CallLocalFunction, and SetDisabledWeapons
//----------------------------------------------------------
// a_samp.inc functions
//----------------------------------------------------------
const PAWN_FUNCTION pSendClientMessage =		{ 3,  "SendClientMessage",			"iis" };
const PAWN_FUNCTION pSendClientMessageToAll =	{ 2,  "SendClientMessageToAll",		"is" };
const PAWN_FUNCTION pSendPlayerMessageToPlayer= { 3,  "SendPlayerMessageToPlayer",	"iis" };
const PAWN_FUNCTION pSendPlayerMessageToAll=    { 2,  "SendPlayerMessageToAll",	    "is" };
const PAWN_FUNCTION pSendDeathMessage=          { 3,  "SendDeathMessage",           "iii" };
const PAWN_FUNCTION pGameTextForAll=            { 3,  "GameTextForAll",             "sii" };
const PAWN_FUNCTION pGameTextForPlayer =        { 4,  "GameTextForPlayer",          "isii" };
const PAWN_FUNCTION pGetTickCount =        { 4,  "GetTickCount",          "" };
const PAWN_FUNCTION pGetMaxPlayers =			{ 0,  "GetMaxPlayers",				"" };
const PAWN_FUNCTION pLimitGlobalChatRadius =			{ 1,  "LimitGlobalChatRadius",				"f" };
const PAWN_FUNCTION pSetGameModeText =			{ 1,  "SetGameModeText",			"s" };
const PAWN_FUNCTION pAddPlayerClass =			{ 11, "AddPlayerClass",				"iffffiiiiii" };
const PAWN_FUNCTION pAddPlayerClassEx =			{ 12, "AddPlayerClassEx",				"iiffffiiiiii" };
const PAWN_FUNCTION pSetTeamCount =		{ 1,  "SetTeamCount",			"i" };
const PAWN_FUNCTION pAddStaticVehicle =		{ 7,  "AddStaticVehicle",			"iffffff" };
const PAWN_FUNCTION pAddStaticVehicleEx =		{ 8,  "AddStaticVehicleEx",			"iffffffi" };
const PAWN_FUNCTION pAddStaticPickup =		{ 5,  "AddStaticPickup",			"iifff" };
const PAWN_FUNCTION pCreatePickup =		{ 5,  "CreatePickup",			"iifff" };
const PAWN_FUNCTION pDestroyPickup =		{ 1,  "DestroyPickup",			"i" };
const PAWN_FUNCTION pShowNameTags =		{ 1,  "ShowNameTags",			"i" };
const PAWN_FUNCTION pShowPlayerMarkers =		{ 1,  "ShowPlayerMarkers",			"i" };
const PAWN_FUNCTION pGameModeExit =		{ 0,  "GameModeExit",			"" };
const PAWN_FUNCTION pGetWeaponName =		{ 3,  "GetWeaponName",			"i" };
const PAWN_FUNCTION pEnableTirePopping =		{ 1,  "EnableTirePopping",			"i" };
const PAWN_FUNCTION pAllowInteriorWeapons =		{ 1,  "AllowInteriorWeapons",			"i" };
const PAWN_FUNCTION pSetWeather =		{ 1,  "SetWeather",			"i" };
const PAWN_FUNCTION pSetGravity =		{ 1,  "SetGravity",			"f" };
const PAWN_FUNCTION pAllowAdminTeleport =		{ 1,  "AllowAdminTeleport",			"i" };
const PAWN_FUNCTION pSetDeathDropAmount =		{ 1,  "SetDeathDropAmount",			"i" };
const PAWN_FUNCTION pCreateExplosion =		{ 5,  "CreateExplosion",			"fffif" };
const PAWN_FUNCTION pEnableZoneNames =		{ 1,  "EnableZoneNames",			"i" };
const PAWN_FUNCTION pUsePlayerPedAnims =		{ 1,  "UsePlayerPedAnims",			"i" };
const PAWN_FUNCTION pIsPlayerAdmin =		{ 1,  "IsPlayerAdmin",			"i" };
const PAWN_FUNCTION pKick =		{ 1,  "Kick",			"i" };
const PAWN_FUNCTION pBan =		{ 1,  "Ban",			"i" };
const PAWN_FUNCTION pBanEx =		{ 2,  "BanEx",			"is" };
const PAWN_FUNCTION pSendRconCommand =		{ 1,  "SendRconCommand",			"s" };
const PAWN_FUNCTION pGetServerVarAsString =		{ 1,  "GetServerVarAsString",			"svs" };
const PAWN_FUNCTION pGetServerVarAsInt =		{ 1,  "GetServerVarAsInt",			"s" };
const PAWN_FUNCTION pGetServerVarAsBool =		{ 1,  "GetServerVarAsBool",			"s" };
const PAWN_FUNCTION pCreateMenu =				{ 6,  "CreateMenu",					"siffff" };
const PAWN_FUNCTION pDestroyMenu =		{ 1,  "IsPlayerConnected",			"i" };
const PAWN_FUNCTION pAddMenuItem =				{ 3,  "AddMenuItem",				"iis" };
const PAWN_FUNCTION pSetMenuColumnHeader =		{ 3,  "SetMenuColumnHeader",		"iis" };
const PAWN_FUNCTION pShowMenuForPlayer =		{ 2,  "ShowMenuForPlayer",			"ii" };
const PAWN_FUNCTION pHideMenuForPlayer =		{ 2,  "HideMenuForPlayer",			"ii" };
const PAWN_FUNCTION pIsValidMenu =				{ 1,  "IsValidMenu",				"i" };
const PAWN_FUNCTION pDisableMenuRow =			{ 2,  "DisableMenuRow",				"ii" };
const PAWN_FUNCTION pGetPlayerMenu =		{ 1,  "GetPlayerMenu",			"i" };
const PAWN_FUNCTION pTextDrawCreate =			{ 3,  "TextDrawCreate",				"ffs" };
const PAWN_FUNCTION pTextDrawDestroy =			{ 1,  "TextDrawDestroy",			"i" };
const PAWN_FUNCTION pTextDrawLetterSize =		{ 3,  "TextDrawLetterSize",			"iff" };
const PAWN_FUNCTION pTextDrawTextSize =			{ 3,  "TextDrawTextSize",			"iff" };
const PAWN_FUNCTION pTextDrawAlignment =		{ 2,  "TextDrawAlignment",			"ii" };
const PAWN_FUNCTION pTextDrawColor =			{ 2,  "TextDrawColor",				"ii" };
const PAWN_FUNCTION pTextDrawUseBox =			{ 2,  "TextDrawUseBox",				"ii" };
const PAWN_FUNCTION pTextDrawBoxColor =			{ 2,  "TextDrawBoxColor",			"ii" };
const PAWN_FUNCTION pTextDrawSetShadow =		{ 2,  "TextDrawSetShadow",			"ii" };
const PAWN_FUNCTION pTextDrawSetOutline =		{ 2,  "TextDrawSetOutline",			"ii" };
const PAWN_FUNCTION pTextDrawBackgroundColor =	{ 2,  "TextDrawBackgroundColor",	"ii" };
const PAWN_FUNCTION pTextDrawFont =				{ 2,  "TextDrawFont",				"ii" };
const PAWN_FUNCTION pTextDrawSetProportional =	{ 2,  "TextDrawSetProportional",	"ii" };
const PAWN_FUNCTION pTextDrawShowForPlayer =	{ 2,  "TextDrawShowForPlayer",		"ii" };
const PAWN_FUNCTION pTextDrawHideForPlayer =	{ 2,  "TextDrawHideForPlayer",		"ii" };
const PAWN_FUNCTION pTextDrawShowForAll =		{ 1,  "TextDrawShowForAll",			"i" };
const PAWN_FUNCTION pTextDrawHideForAll =		{ 1,  "TextDrawHideForAll",			"i" };
const PAWN_FUNCTION pGangZoneCreate =		{ 4,  "GangZoneCreate",			"ffff" };
const PAWN_FUNCTION pGangZoneDestroy =		{ 1,  "GangZoneDestroy",			"i" };
const PAWN_FUNCTION pGangZoneShowForPlayer =		{ 3,  "GangZoneShowForPlayer",			"iii" };
const PAWN_FUNCTION pGangZoneShowForAll =		{ 2,  "GangZoneShowForAll",			"ii" };
const PAWN_FUNCTION pGangZoneHideForPlayer =		{ 2,  "GangZoneHideForPlayer",			"ii" };
const PAWN_FUNCTION pGangZoneHideForAll =		{ 1,  "GangZoneHideForAll",			"i" };
const PAWN_FUNCTION pGangZoneFlashForPlayer =		{ 3,  "GangZoneFlashForPlayer",			"iii" };
const PAWN_FUNCTION pGangZoneFlashForAll =		{ 2,  "GangZoneFlashForAll",			"ii" };
const PAWN_FUNCTION pGangZoneStopFlashForPlayer =		{ 2,  "GangZoneStopFlashForPlayer",			"ii" };
const PAWN_FUNCTION pGangZoneStopFlashForAll =		{ 1,  "GangZoneStopFlashForAll",			"i" };

//----------------------------------------------------------
// a_players.inc functions
//----------------------------------------------------------
const PAWN_FUNCTION pSetSpawnInfo =		{ 13,  "SetSpawnInfo",			"iiiffffiiiiii" };
const PAWN_FUNCTION pSpawnPlayer =		{ 1,  "SpawnPlayer",			"i" };
const PAWN_FUNCTION	pSetPlayerPos =				{ 4,  "SetPlayerPos",				"ifff" };
const PAWN_FUNCTION pSetPlayerPosFindZ =		{ 4,  "SetPlayerPosFindZ",			"ifff" };
const PAWN_FUNCTION pGetPlayerPos =				{ 4,  "GetPlayerPos",				"ivvv" };
const PAWN_FUNCTION pSetPlayerFacingAngle =		{ 2,  "SetPlayerFacingAngle",			"if" };
const PAWN_FUNCTION pGetPlayerFacingAngle =		{ 2,  "GetPlayerFacingAngle",			"iv" };
const PAWN_FUNCTION pSetPlayerInterior =		{ 2,  "SetPlayerInterior",			"ii" };
const PAWN_FUNCTION pGetPlayerInterior =		{ 1,  "GetPlayerInterior",			"i" };
const PAWN_FUNCTION pGetPlayerHealth =		{ 2,  "GetPlayerHealth",			"iv" };
const PAWN_FUNCTION pSetPlayerHealth =		{ 2,  "SetPlayerHealth",			"if" };
const PAWN_FUNCTION pSetPlayerArmour =		{ 2,  "SetPlayerArmour",			"if" };
const PAWN_FUNCTION pGetPlayerArmour =		{ 2,  "GetPlayerArmour",			"iv" };
const PAWN_FUNCTION pSetPlayerAmmo =		{ 3,  "SetPlayerAmmo",			"iii" };
const PAWN_FUNCTION pSetPlayerTeam =		{ 2,  "SetPlayerTeam",			"ii" };
const PAWN_FUNCTION pGetPlayerTeam =		{ 1,  "GetPlayerTeam",			"i" };
const PAWN_FUNCTION pSetPlayerScore =		{ 2,  "SetPlayerScore",			"ii" };
const PAWN_FUNCTION pGetPlayerScore =		{ 1,  "GetPlayerScore",			"i" };
const PAWN_FUNCTION pSetPlayerColor =		{ 2,  "SetPlayerColor",			"ii" };
const PAWN_FUNCTION pGetPlayerColor =		{ 1,  "GetPlayerColor",			"i" };
const PAWN_FUNCTION pSetPlayerSkin =		{ 2,  "SetPlayerSkin",			"ii" };
const PAWN_FUNCTION pGetPlayerSkin =		{ 1,  "GetPlayerSkin",			"i" };
const PAWN_FUNCTION pGivePlayerWeapon =		{ 3,  "GivePlayerWeapon",			"iii" };
const PAWN_FUNCTION pResetPlayerWeapons =		{ 1,  "ResetPlayerWeapons",			"i" };
const PAWN_FUNCTION pGetPlayerAmmo =		{ 1,  "GetPlayerAmmo",			"i" };
const PAWN_FUNCTION pGetPlayerWeaponData =		{ 4,  "GetPlayerWeaponData",			"iivv" };
const PAWN_FUNCTION pGivePlayerMoney =		{ 2,  "GivePlayerMoney",			"ii" };
const PAWN_FUNCTION pResetPlayerMoney =		{ 1,  "ResetPlayerMoney",			"i" };
const PAWN_FUNCTION pSetPlayerName =		{ 2,  "SetPlayerName",			"is" };
const PAWN_FUNCTION pGetPlayerMoney =		{ 1,  "GetPlayerMoney",			"i" };
const PAWN_FUNCTION pGetPlayerState =		{ 1,  "GetPlayerState",			"i" };
const PAWN_FUNCTION pGetPlayerIp =		{ 3,  "GetPlayerIp",			"isi" };
const PAWN_FUNCTION pGetPlayerPing =		{ 1,  "GetPlayerPing",			"i" };
const PAWN_FUNCTION GetPlayerWeapon =		{ 1,  "GetPlayerWeapon",			"i" };
const PAWN_FUNCTION pGetPlayerKeys =		{ 4,  "GetPlayerKeys",			"ivvv" };
const PAWN_FUNCTION pGetPlayerName =		{ 3,  "GetPlayerName",			"isi" };
const PAWN_FUNCTION pSetPlayerTime =		{ 3,  "SetPlayerTime",			"iii" };
const PAWN_FUNCTION pGetPlayerTime =		{ 3,  "GetPlayerAmmo",			"ivv" };
const PAWN_FUNCTION pTogglePlayerClock =		{ 2,  "TogglePlayerClock",			"ii" };
const PAWN_FUNCTION pSetPlayerWeather =		{ 2,  "SetPlayerWeather",			"ii" };
const PAWN_FUNCTION pForceClassSelection =		{ 1,  "ForceClassSelection",			"i" };
const PAWN_FUNCTION pSetPlayerWantedLevel =		{ 2,  "SetPlayerWantedLevel",			"ii" };
const PAWN_FUNCTION pGetPlayerWantedLevel =		{ 1,  "GetPlayerWantedLevel",			"i" };
const PAWN_FUNCTION pPutPlayerInVehicle =		{ 3,  "PutPlayerInVehicle",			"iii" };
const PAWN_FUNCTION pGetPlayerVehicleID =		{ 1,  "GetPlayerVehicleID",			"i" };
const PAWN_FUNCTION pRemovePlayerFromVehicle =		{ 1,  "RemovePlayerFromVehicle",			"i" };
const PAWN_FUNCTION pTogglePlayerControllable =		{ 2,  "TogglePlayerControllable",			"ii" };
const PAWN_FUNCTION pPlayerPlaySound =		{ 5,  "PlayerPlaySound",			"iifff" };
const PAWN_FUNCTION pApplyAnimation =		{ 9,  "ApplyAnimation",			"issfiiiii" };
const PAWN_FUNCTION pGetPlayerSpecialAction =		{ 1,  "GetPlayerSpecialAction",			"i" };
const PAWN_FUNCTION pSetPlayerSpecialAction =		{ 2,  "SetPlayerSpecialAction",			"ii" };
const PAWN_FUNCTION pSetPlayerCheckpoint =		{ 5,  "SetPlayerCheckpoint",			"iffff" };
const PAWN_FUNCTION pDisablePlayerCheckpoint =		{ 1,  "DisablePlayerCheckpoint",			"i" };
const PAWN_FUNCTION pSetPlayerRaceCheckpoint =		{ 9,  "SetPlayerRaceCheckpoint",			"iifffffff" };
const PAWN_FUNCTION pDisablePlayerRaceCheckpoint =		{ 1,  "DisablePlayerRaceCheckpoint",			"i" };
const PAWN_FUNCTION pSetPlayerWorldBounds =		{ 5,  "SetPlayerWorldBounds",			"iffff" };
const PAWN_FUNCTION pSetPlayerMarkerForPlayer =		{ 3,  "SetPlayerMarkerForPlayer",			"iii" };
const PAWN_FUNCTION pShowPlayerNameTagForPlayer =		{ 3,  "ShowPlayerNameTagForPlayer",			"iii" };
const PAWN_FUNCTION pSetPlayerMapIcon =		{ 7,  "SetPlayerMapIcon",			"iifffii" };
const PAWN_FUNCTION pRemovePlayerMapIcon =		{ 2,  "RemovePlayerMapIcon",			"ii" };
const PAWN_FUNCTION pSetPlayerCameraPos =		{ 4,  "SetPlayerCameraPos",			"ifff" };
const PAWN_FUNCTION pSetPlayerCameraLookAt =		{ 4,  "SetPlayerCameraLookAt",			"ifff" };
const PAWN_FUNCTION pSetCameraBehindPlayer =		{ 1,  "SetCameraBehindPlayer",			"i" };
const PAWN_FUNCTION pAllowPlayerTeleport =		{ 2,  "AllowPlayerTeleport",			"ii" };
const PAWN_FUNCTION pIsPlayerConnected =		{ 1,  "IsPlayerConnected",			"i" };
const PAWN_FUNCTION pIsPlayerInVehicle =		{ 2,  "IsPlayerInVehicle",			"ii" };
const PAWN_FUNCTION pIsPlayerInAnyVehicle =		{ 1,  "IsPlayerInAnyVehicle",			"i" };
const PAWN_FUNCTION pIsPlayerInCheckpoint =		{ 1,  "IsPlayerInCheckpoint",			"i" };
const PAWN_FUNCTION pIsPlayerInRaceCheckpoint =		{ 1,  "IsPlayerInRaceCheckpoint",			"i" };
const PAWN_FUNCTION pSetPlayerVirtualWorld =		{ 2,  "SetPlayerVirtualWorld",			"ii" };
const PAWN_FUNCTION pGetPlayerVirtualWorld =		{ 1,  "GetPlayerVirtualWorld",			"i" };
const PAWN_FUNCTION pTogglePlayerSpectating =		{ 2,  "TogglePlayerSpectating",			"ii" };
const PAWN_FUNCTION pPlayerSpectatePlayer =		{ 3,  "PlayerSpectatePlayer",			"iii" };
const PAWN_FUNCTION pPlayerSpectateVehicle =		{ 3,  "PlayerSpectateVehicle",			"iii" };

//----------------------------------------------------------
// a_vehicles.inc functions
//----------------------------------------------------------
const PAWN_FUNCTION pCreateVehicle =			{ 8,  "CreateVehicle",				"iffffiii" };
const PAWN_FUNCTION pDestroyVehicle =			{ 1,  "DestroyVehicle",				"i" };
const PAWN_FUNCTION pGetVehiclePos =		{ 4,  "GetVehiclePos",			"ivvv" };
const PAWN_FUNCTION pSetVehiclePos =		{ 4,  "SetVehiclePos",			"ifff" };
const PAWN_FUNCTION pGetVehicleZAngle =		{ 2,  "GetVehicleZAngle",			"iv" };
const PAWN_FUNCTION pSetVehicleZAngle =		{ 2,  "SetVehicleZAngle",			"if" };
const PAWN_FUNCTION pSetVehicleParamsForPlayer =		{ 4,  "SetVehicleParamsForPlayer",			"iiii" };
const PAWN_FUNCTION pSetVehicleToRespawn =		{ 1,  "SetVehicleToRespawn",			"i" };
const PAWN_FUNCTION pLinkVehicleToInterior =		{ 2,  "LinkVehicleToInterior",			"ii" };
const PAWN_FUNCTION pAddVehicleComponent =		{ 2,  "AddVehicleComponent",			"ii" };
const PAWN_FUNCTION pRemoveVehicleComponent =		{ 2,  "RemoveVehicleComponent",			"ii" };
const PAWN_FUNCTION pChangeVehicleColor =		{ 3,  "ChangeVehicleColor",			"iii" };
const PAWN_FUNCTION pChangeVehiclePaintjob =		{ 2,  "ChangeVehiclePaintjob",			"ii" };
const PAWN_FUNCTION SetVehicleHealth =		{ 2,  "SetVehicleHealth",			"if" };
const PAWN_FUNCTION pGetVehicleHealth =		{ 2,  "GetVehicleHealth",			"iv" };
const PAWN_FUNCTION pAttachTrailerToVehicle =		{ 2,  "AttachTrailerToVehicle",			"ii" };
const PAWN_FUNCTION pDetachTrailerFromVehicle =		{ 1,  "DetachTrailerFromVehicle",			"i" };
const PAWN_FUNCTION pIsTrailerAttachedToVehicle =		{ 1,  "IsTrailerAttachedToVehicle",			"i" };
const PAWN_FUNCTION pGetVehicleTrailer =		{ 1,  "GetVehicleTrailer",			"i" };
const PAWN_FUNCTION pSetVehicleNumberPlate =		{ 2,  "SetVehicleNumberPlate",			"is" };
const PAWN_FUNCTION pGetVehicleModel =		{ 1,  "GetVehicleModel",			"i" };
const PAWN_FUNCTION pSetVehicleVirtualWorld =	{ 2,  "SetVehicleVirtualWorld",		"ii" };
const PAWN_FUNCTION pGetVehicleVirtualWorld =	{ 1,  "GetVehicleVirtualWorld",		"i" };

//----------------------------------------------------------
// a_objects.inc functions
//----------------------------------------------------------
// Vehicle
const PAWN_FUNCTION pCreateObject =	{ 7,  "CreateObject",		"iffffff" };
const PAWN_FUNCTION pSetObjectPos =	{ 4,  "SetObjectPos",		"ifff" };
const PAWN_FUNCTION pGetObjectPos =	{ 4,  "GetObjectPos",		"ivv" };
const PAWN_FUNCTION pSetObjectRot =	{ 4,  "SetObjectRot",		"ifff" };
const PAWN_FUNCTION pGetObjectRot =	{ 4,  "GetObjectRot",		"ivv" };
const PAWN_FUNCTION pIsValidObject =	{ 1,  "IsValidObject",		"i" };
const PAWN_FUNCTION pDestroyObject =	{ 1,  "DestroyObject",		"i" };
const PAWN_FUNCTION pMoveObject =	{ 5,  "MoveObject",		"iffff" };
const PAWN_FUNCTION pStopObject =	{ 1,  "StopObject",		"i" };
const PAWN_FUNCTION pCreatePlayerObject =	{ 8,  "CreatePlayerObject",		"iiffffff" };
const PAWN_FUNCTION pSetPlayerObjectPos =	{ 5,  "SetPlayerObjectPos",		"iifff" };
const PAWN_FUNCTION pGetPlayerObjectPos =	{ 5,  "GetPlayerObjectPos",		"iivvv" };
const PAWN_FUNCTION pSetPlayerObjectRot =	{ 5,  "SetPlayerObjectRot",		"iifff" };
const PAWN_FUNCTION pGetPlayerObjectRot =	{ 5,  "GetPlayerObjectRot",		"iivvv" };
const PAWN_FUNCTION pIsValidPlayerObject =	{ 2,  "IsValidPlayerObject",		"ii" };
const PAWN_FUNCTION pDestroyPlayerObject =	{ 2,  "DestroyPlayerObject",		"ii" };
const PAWN_FUNCTION pMovePlayerObject =	{ 6,  "MovePlayerObject",		"iiffff" };
const PAWN_FUNCTION pStopPlayerObject =	{ 2,  "StopPlayerObject",		"ii" };
const PAWN_FUNCTION pAttachObjectToPlayer =	{ 8,  "AttachObjectToPlayer",		"iiffffff" };
const PAWN_FUNCTION pAttachPlayerObjectToPlayer =	{ 9,  "AttachPlayerObjectToPlayer",		"iiiffffff" };

// oh my fucking god, that took forever...
// credits to jacob.