/aduty Admin text
#6

On top:
PHP код:
new Text3D:label[MAX_PLAYERS]; 
Command:
PHP код:
CMD:aduty(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 2)
    {
        new 
string[256];
        if(
GetPVarInt(playerid"AdminDuty") == 1)
        {
            
SendClientMessage(playeridCOLOR_WHITE"You are now off a-duty.");
            
format(stringsizeof(string), "{FFFFFF}Administrator {FF0000}%s {FFFFFF}is now {FF0000}off{FFFFFF} a-duty."GetPlayerNameEx(playerid));
             
SendClientMessageToAllEx(COLOR_WHITEstring);
             
SetPlayerHealth(playerid100);
            
SetPlayerArmour(playerid100);
            
RemovePlayerWeapon(playerid38);
            
DeletePVar(playerid"AdminDuty");
            
Delete3DTextLabel(label[playerid]);
        }
        else
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"You are now on a-duty.");
            
format(stringsizeof(string), "{FFFFFF}Administrator {00FF00}%s {FFFFFF}is now {00FF00}on{FFFFFF} a-duty."GetPlayerNameEx(playerid));
            
SendClientMessageToAllEx(COLOR_WHITEstring);
            
SetPlayerHealth(playerid100000);
            
SetPlayerArmour(playerid100000);
            
GivePlayerValidWeapon(playerid3866666);
            
SetPVarInt(playerid"AdminDuty"1);
            
label[playerid] = Create3DTextLabel("Admin on duty"0x008080FF30.040.050.040.00);
            
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7); 
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"   You are not a Administrator!");
    }
    return 
1;

Reply


Messages In This Thread
/aduty Admin text - by Trevor Gin - 29.01.2015, 10:21
Re: /aduty Admin text - by nezo2001 - 29.01.2015, 10:27
Re: /aduty Admin text - by Trevor Gin - 29.01.2015, 10:43
Re: /aduty Admin text - by Luca12 - 29.01.2015, 10:46
Re: /aduty Admin text - by ChandraLouis - 29.01.2015, 10:46
Re: /aduty Admin text - by ATGOggy - 29.01.2015, 10:50
Re: /aduty Admin text - by Trevor Gin - 29.01.2015, 11:30
Re: /aduty Admin text - by AdamsP - 29.01.2015, 12:27
Re: /aduty Admin text - by Trevor Gin - 29.01.2015, 13:14
Re: /aduty Admin text - by HyDrAtIc - 29.01.2015, 13:25

Forum Jump:


Users browsing this thread: 3 Guest(s)