Checkpoints
#1

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 -.-'
Reply
#2

Use if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
Reply
#3

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
         if(IsPlayerInDynamicCP(playerid, CP))
         {
         // functions
         }
}
Reply
#4

pawn Код:
if(IsPlayerInAnyVehicle(playerid) return SendClientMessage(playerid,-1,"You must leave the Vehicle to Enter any Check Point.");
Reply
#5

thank you all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)