29.09.2016, 13:52
PHP код:
CMD:vipset(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] != 5) return 0;
new Target;
if(sscanf(params, "u",Target)) return SendClientMessage(playerid, red, "USAGE: /vipset <playerid>/<player name>");
if(!IsPlayerConnected(Target)) return SendClientMessage(playerid, red, "Player is not connected!");
GameTextForPlayer(playerid, (VipSet[playerid]) ? ("~W~VIP status ~r~removed to the selected player") : ("~W~VIP status ~g~added to the selected player"), 5000, 5);
PlayerInfo[playerid][pVip] = !PlayerInfo[playerid][pVip];
VipSet[playerid] = !VipSet[playerid];
return 1;
}