Admin Duty command
#2

top of your script
Код:
new Text3D:label1[MAX_PLAYERS];
Код:
CMD:aduty(playerid, paramas[])
{
    if(adutys[playerid] == 1)
    {
		if(pInfo[playerid][Admin] >= 1)
		{
	    	SetPlayerColor(playerid, 0xAA3333AA); 
	    	SetPlayerHealth(playerid, 9999999);
	    	SetPlayerArmour(playerid, 9999999);
               SetPlayerSkin(playerid, 294);
	    	adutys[playerid] = 0;
			labeli[playerid] = Create3DTextLabel("Admin", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
	    	Attach3DTextLabelToPlayer(labeli[playerid], playerid, 0.0, 0.0, 0.7);
		}
		else
		SendClientMessage(playerid, 0xAA3333AA, "You must be admin to access this command!");
	}
	else
	if(adutys[playerid] == 0)
	{
			if(pInfo[playerid][Admin] >= 1)
		{
			SetPlayerColor(playerid, 0xFFFFFFAA);
	    	SetPlayerHealth(playerid, 100);
	    	SetPlayerArmour(playerid, 0);
Delete3DTextLabel(labeli[playerid]);
	    	adutys[playerid] = 1;
		}
	    else
	    SendClientMessage(playerid, 0xAA3333AA, "You must be admin to access this command!");
	}
	return 1;
}
Change admin variables to yours
Reply


Messages In This Thread
Admin Duty command[SOLVED][1Deagle1 Rocks] - by NexySamp - 11.08.2015, 19:57
Re: Admin Duty command - by Crystallize - 11.08.2015, 20:05
Re: Admin Duty command - by Variable™ - 11.08.2015, 20:07
Re: Admin Duty command - by NexySamp - 11.08.2015, 20:17
Re: Admin Duty command - by Variable™ - 11.08.2015, 20:19
Re: Admin Duty command - by NexySamp - 11.08.2015, 20:23
Re: Admin Duty command - by Variable™ - 11.08.2015, 20:25
Re: Admin Duty command - by NexySamp - 11.08.2015, 20:31
Re: Admin Duty command - by Variable™ - 11.08.2015, 20:33
Re: Admin Duty command - by Crystallize - 11.08.2015, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)