locking classes for wanted players - 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: locking classes for wanted players (
/showthread.php?tid=387938)
locking classes for wanted players -
Stu1 - 26.10.2012
Hey guys, me again. How would i go about locking a class if a player is wanted?
Re: locking classes for wanted players -
_Khaled_ - 26.10.2012
PHP код:
if(GetPlayerWantedLevel(playerid) >= 1)
{
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
SendClientMessage(playerid, COLOR_RED, "You're wanted");
}
it's not so hard
Re: locking classes for wanted players -
Stu1 - 27.10.2012
Cheers Khaled, works a charm. Repped.