Command problem
#1

I made 2 admin Commands and they work...BUT when the admin goes onduty they dont change to the color ID as the are set to...any ideas why?

Code:

Код:
COMMAND:onduty(playerid,params[])
{
    if(pInfo[playerid][Adminlevel] >= 1)
	{
	    SetPlayerHealth(playerid,99999);
	    SetPlayerArmour(playerid,99999);
	    SetPlayerColor(playerid,COLOR_RED);
	    GivePlayerWeapon(playerid,38,99999);
	    SendClientMessageToAll(COLOR_RED,"A ADMIN is now on DUTY! The ADMIN is defined as a RED player.");
	}
	return 1;
}
COMMAND:offduty(playerid,params[])
{
    if(pInfo[playerid][Adminlevel] >= 1)
	{
	    SetPlayerHealth(playerid,100);
	    SetPlayerArmour(playerid,100);
	    SetPlayerColor(playerid,COLOR_WHITE);
	    SendClientMessageToAll(COLOR_RED,"The ADMIN is now OFF-DUTY.");
	}
	return 1;
}
Reply


Messages In This Thread
Command problem - by Thoma - 20.01.2015, 18:54
Re: Command problem - by TFreemen - 20.01.2015, 19:08
Re: Command problem - by HY - 20.01.2015, 19:28
Re: Command problem - by Thoma - 20.01.2015, 19:31
Re: Command problem - by Thoma - 20.01.2015, 19:59
Re: Command problem - by Schneider - 20.01.2015, 20:19
Re: Command problem - by Thoma - 20.01.2015, 21:01
Re: Command problem - by Thoma - 20.01.2015, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)