GetPlayerState bug? - 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: GetPlayerState bug? (
/showthread.php?tid=301397)
GetPlayerState bug? -
Admigo - 04.12.2011
Heey all,
I made a key for arresting players.
If a player is in a car its works great but when a player is on a moter i can arrest him.
Is this a bug or something?
Код:
if(GetPlayerState(ID)==PLAYER_STATE_DRIVER || GetPlayerState(ID)==PLAYER_STATE_PASSENGER)
{
new arreststring[256];
format(arreststring,sizeof(arreststring),"~b~Officer %s:Pull your vehicle over now!",PlayerName(playerid));
GameTextForPlayer(ID,arreststring,3000,5);
}
How can i fix this?
Thanks Admigo
Re: GetPlayerState bug? -
Mike_Peterson - 04.12.2011
This is not the correct part of code, this is not where the 'criminal' actually gets arrested.
Show us that code...
lil' boy