30.04.2012, 21:53
Quote:
here is the cmd::
Код:
CMD:setvip(playerid, params[]) { for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players { if(IsPlayerAdmin(i)) //Only Rcon Admin { if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE:: /setvip [playername/id]"); new string[987], n[MAX_PLAYER_NAME], targerID; GetPlayerName(playerid, n, sizeof(n)); new rank = 1>5; format(string, sizeof(string), " Admin %s has set you vip level %s", n, rank); SetPlayerTeam(playerid, VIP); PlayerInfo[playerid][pVip] = rank; SendClientMessage(targerID, -1, string); SendClientMessage(i, -1,string); return 1; } else return SendClientMessage(playerid, -1, "You are not authorized to use that command!!"); } return 1; } Код:
#define VIP 999 |