Admin Duty
#7

PHP код:
CMD:adminduty(playeridparams[])
{
    if(!
PlayerInfo[playerid][Level] && !IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOUR_BLUE"You're not an admin!");
    
adminDuty[playerid] = !adminDuty[playerid];
    
SetPlayerHealth(playeridadminDuty[playerid] ? 9999.0 100.0);
    
SendClientMessage(playerid,COLOUR_BLUE,adminDuty[playerid] ? ("You are now on duty!") : ("You are now off duty!"));
    
SetPlayerColor(playerid,adminDuty[playerid] ? COLOUR_BLUE 0xFFFFFFFF);
    
SetPlayerSkin(playerid,adminDuty[playerid] ? 294 0); //if adminDuty[playerid] == 0 then skin=cj
    
new msg[42];
    
format(msgsizeof(msg), adminDuty[playerid] ? ("%s is now on Duty!") : ("%s is now off Duty!"), GetPlayerNameEx(playerid));
    
SendClientMessageToAll(COLOUR_BLUEmsg);
    return 
1;

Reply


Messages In This Thread
Admin Duty - by KyNe - 19.12.2017, 07:58
Re: Admin Duty - by RogueDrifter - 19.12.2017, 08:21
Re: Admin Duty - by KyNe - 19.12.2017, 08:23
Re: Admin Duty - by RogueDrifter - 19.12.2017, 08:26
Re: Admin Duty - by KyNe - 19.12.2017, 08:58
Re: Admin Duty - by 0x88 - 19.12.2017, 09:00
Re: Admin Duty - by Argument - 19.12.2017, 10:10
Re: Admin Duty - by jasperschellekens - 19.12.2017, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)