PlayerOnFoot
#1

whats the little thingy for that?
i have
if(!IsPlayerInAnyVehicle(playerid))
but now i need
if(!IsPlayerOnFoot(playerid)) << tell me if thats right :P
Reply
#2

In Vehicle
Код:
if(IsPlayerInAnyVehicle(playerid))
On Foot
Код:
if(!IsPlayerInAnyVehicle(playerid))
Reply
#3

Can you fix it up? i do this:
pawn Код:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You cant arrest whilst in a car!");
Reply
#4

Like this i guess:
Код:
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xFF0000FF, "You cant arrest whilst in a car!");
}
Reply
#5

So using that code would stop the player using that command whilst in a car?
Reply
#6

nope
i'll send it!
Reply
#7

so i give you my code? so you log off? good leech there.
Reply
#8

pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, 0xFF0000FF, "You can only arrest someone when you are on foot!");
Jeffry
Reply
#9

error 010: invalid function or declaration
Reply
#10

Update your includes?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)