Levels for 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)
+--- Thread: Levels for class (
/showthread.php?tid=363137)
Levels for class -
Vendicatori - 26.07.2012
Hello, Samp players!
I got a Cops and robbers server and i want to add a requirement to be a cop.
Players needs to have 50 score to get to play as a cop.
Please tell me how to do this.
Re: Levels for class -
RedJohn - 26.07.2012
pawn Код:
if (GetPlayerScore(playerid) => 50)
{
//Rest of code
return 1;
}
Re: Levels for class -
maramizo - 26.07.2012
pawn Код:
CMD:makemecop(playerid, params[])
{
if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid, COLOR_WHITE, "You must have atleast fifty score to become a cop.");
else
{
SetPlayerTeam(playerid, TEAM_COPS);
//bla bla
return 1;
}
}