SA-MP Forums Archive
PlayerOnFoot - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PlayerOnFoot (/showthread.php?tid=272637)



PlayerOnFoot - phil_lendon - 29.07.2011

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


Re: PlayerOnFoot - RowdyrideR - 29.07.2011

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



Re: PlayerOnFoot - phil_lendon - 29.07.2011

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



Re: PlayerOnFoot - RowdyrideR - 29.07.2011

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



Re: PlayerOnFoot - phil_lendon - 29.07.2011

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


Re: PlayerOnFoot - RowdyrideR - 29.07.2011

nope
i'll send it!


Re: PlayerOnFoot - phil_lendon - 29.07.2011

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


Re: PlayerOnFoot - Jeffry - 29.07.2011

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


Re: PlayerOnFoot - phil_lendon - 29.07.2011

error 010: invalid function or declaration


Re: PlayerOnFoot - GangsTa_ - 29.07.2011

Update your includes?