Levels for class
#1

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.
Reply
#2

pawn Код:
if (GetPlayerScore(playerid) => 50)
{
    //Rest of code
    return 1;
}
Reply
#3

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;
       }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)