anybody got a stock? - 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: anybody got a stock? (
/showthread.php?tid=257583)
anybody got a stock? -
CrazyBlob - 26.05.2011
does anybody here have a stock detecting if a player is
OnPlayerRequestClass?
cheers
Re: anybody got a stock? -
Vince - 26.05.2011
Save it in a variable in OnPlayerRequestClass? This might work as well, though:
pawn Код:
stock IsPlayerInClassSelection(playerid)
return (GetPlayerState(playerid) == PLAYER_STATE_WASTED) ? true : false;
Re: anybody got a stock? -
CrazyBlob - 26.05.2011
Quote:
Originally Posted by Vince
Save it in a variable in OnPlayerRequestClass? This might work as well, though:
pawn Код:
stock IsPlayerInClassSelection(playerid) return (GetPlayerState(playerid) == PLAYER_STATE_WASTED) ? true : false;
|
thanks i dint think about getplayerstate cheers