27.10.2012, 01:16
This command isn't working, just says "server: unknown command" what's up
pawn Код:
CMD:rank(playerid,params[])
{
if(GetPlayerScore(playerid) < 0)
{
SendClientMessage(playerid,YELLOW,"Private");
}
else if(GetPlayerScore(playerid) < 50)
{
SendClientMessage(playerid,YELLOW,"Corporal");
}
else if(GetPlayerScore(playerid) < 100)
{
SendClientMessage(playerid,YELLOW,"Lieutenant");
}
else if(GetPlayerScore(playerid) < 200)
{
SendClientMessage(playerid,YELLOW,"Captain");
}
else if(GetPlayerScore(playerid) < 350)
{
SendClientMessage(playerid,YELLOW,"Lieutenant Major");
}
else if(GetPlayerScore(playerid) < 500)
{
SendClientMessage(playerid, YELLOW,"Colonel");
}
else if(GetPlayerScore(playerid) < 800)
{
SendClientMessage(playerid, YELLOW,"General");
}
else if(GetPlayerScore(playerid) < 1500)
{
SendClientMessage(playerid, YELLOW,"Master of War");
}
return 1;
}