Something wrong
#5

PHP код:
CMD:vipset(playeridparams[]) 

    if(
PlayerInfo[playerid][pAdmin] != 5) return 0;
    new 
Target;
    if(
sscanf(params"u",Target)) return SendClientMessage(playeridred"USAGE: /vipset <playerid>/<player name>");
    if(!
IsPlayerConnected(Target)) return SendClientMessage(playeridred"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"), 50005);
    
PlayerInfo[playerid][pVip] = !PlayerInfo[playerid][pVip];
    
VipSet[playerid] = !VipSet[playerid];
    return 
1;

Just for fun
Reply


Messages In This Thread
Something wrong - by NealPeteros - 29.09.2016, 12:53
Re: Something wrong - by NealPeteros - 29.09.2016, 12:55
Re: Something wrong - by luke49 - 29.09.2016, 13:12
Re: Something wrong - by Dayrion - 29.09.2016, 13:44
Re: Something wrong - by Threshold - 29.09.2016, 13:52
Re: Something wrong - by NealPeteros - 29.09.2016, 15:28
Re: Something wrong - by NealPeteros - 29.09.2016, 15:30

Forum Jump:


Users browsing this thread: 3 Guest(s)