01.10.2011, 09:12
I made ex
pawn Код:
new GangRanks[MAX_PLAYERS];
stock GetPlayerRangInString(playerid)
{
new str[20];
switch(GangRanks[playerid])
{
case 0: "None";
case 1: "Member";
case 2: "Gangsta";
case 3: "Leader";
}
return str;
}
stock GetPlayerRangInInt(playerid)return GangRanks[playerid];
stock SetPlayerGangRank(playerid, level)
{
GangRanks[playerid] = level;
new str[100];
format(str, 100, "Your new Gang Level \"%s\"", GetPlayerRangInString(playerid));
SendClientMessage(playerid, -1, str);
}