SA-MP Forums Archive
remove player class - 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: remove player class (/showthread.php?tid=190565)



remove player class - i514x - 15.11.2010

is there some way to remove player class? anything?


Re: remove player class - blackwave - 15.11.2010

Just delete the one you dont want from your pwn lol.
Else, if ya mean dont let somebody use:

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerSkin(playerid) == 22) // A guy with orange & black clothes
{
   SetPlayerSkin(playerid, 0); // CJ
   SetPlayerHealth(playerid, 0.0);
   SendClientMessage(playerid, RED, "Skin 22 isn't allowed. Choose any else");
   return 1;
}

 return 1;
}



Re: remove player class - i514x - 16.11.2010

well its not good for me, but i figured my own way to do this