03.01.2016, 21:59
PHP код:
new ID, rank, string[128];
PHP код:
if(rank == '1')
{
PlayerInfo[playerid][nlevel] = 1;
format(string, sizeof(string), "You have changed %s's newb rank to helper", ID);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Your newb rank has been set to helper by Admin %s", playerid);
SendClientMessage(playerid, -1, string);
}
else if(rank == '2')
{
PlayerInfo[playerid][nlevel] = 2;
format(string, sizeof(string), "You have changed %s's newb rank to Advisor", ID);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Your newb rank has been set to Advisor by Admin %s", playerid);
SendClientMessage(playerid, -1, string);
}
else if(rank == '3')
{
PlayerInfo[playerid][nlevel] = 3;
format(string, sizeof(string), "You have changed %s's newb rank to Lead Advisor", ID);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Your newb rank has been set to Lead Advisor by Admin %s", playerid);
SendClientMessage(playerid, -1, string);
}