Checkpoints - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Checkpoints (
/showthread.php?tid=465305)
Checkpoints -
AnonScripter - 21.09.2013
How to make the dynamic cp works only if you are on foot ? because some checkpoints teleport me into a store while i'm in car -.-'
Re: Checkpoints -
Lidor124 - 21.09.2013
Use if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
Re: Checkpoints -
Coe1 - 21.09.2013
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(IsPlayerInDynamicCP(playerid, CP))
{
// functions
}
}
Re: Checkpoints -
Problems - 21.09.2013
pawn Код:
if(IsPlayerInAnyVehicle(playerid) return SendClientMessage(playerid,-1,"You must leave the Vehicle to Enter any Check Point.");
Re: Checkpoints -
AnonScripter - 21.09.2013
thank you all