14.10.2014, 13:42
pawn Code:
COMMAND:makevip(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(APlayerData[playerid][PlayerLevel] >= 5)
{
new id, level, n[MAX_PLAYER_NAME], string[126];
if(sscanf(params, "ud", id, level))
return SendClientMessage(playerid, -1, "USAGE: /makevip [playerid] [level]");
pInfo[id][vStatus] = level;
format(string, sizeof(string), "%s has set your VIP level %d", n, level);
SendClientMessage(id, -1, string);
format(string, sizeof(string), "You have set %s VIP level to %d", playerid, level);
SendClientMessage(playerid, -1, string);
}
}
return 1;
}