31.12.2013, 17:25
pawn Код:
CMD:setvip(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
new tmp4[256], tmp3[256], Index; tmp4 = strtok(params,Index), tmp3 = strtok(params,Index);
if(isnull(tmp4) || isnull(tmp3) || !IsNumeric2(tmp3)) return SendClientMessage(playerid, red, "USAGE: /setvip [playerid] [Level] | Note : Max Levels = 3 |");
new player1 = strval(tmp4), skin = strval(tmp3), string[128];
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CMDMessageToAdmins(playerid,"Setvip");
format(string, sizeof(string), "You have set \"%s's\" Vip Level to '%d", pName(player1), skin); SendClientMessage(playerid,orange,string);
if(player1 != playerid) { format(string,sizeof(string),"Manager \"%s\" has set your Vip Level to '%d'", pName(playerid), skin); SendClientMessage(player1,orange,string); }
return PlayerInfo[player1][dRank] = skin;
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
is that anyhow i can make this turn to IRC commands becoz i wanna be in IRC to set player vip level so please help me
and also the max vip level is 3