Help with Duty [REP ++]
#1

Код:
if (strcmp(cmd,"/on",true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
			        new sMsg[ 128 ];
                	GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                	SetPlayerColor(playerid, ZELENKASTA);
                	SetPlayerArmour(playerid, 10000.0);
					SetPlayerHealth(playerid, 10000.0);
                	format( sMsg, sizeof( sMsg ), "(DC)Admin %s e na dolznost.", sMsg );
                	SendClientMessageToAll(COLOR_LIGHTRED, sMsg);
                	AdminDuty[playerid] = 1;
			}
	   }
And now how to make to player when go off duty this cmd

Код:
	if (strcmp(cmd,"/off",true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
			        new sMsg[ 128 ];
                	GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                	SetPlayerColor(playerid,TEAM_HIT_COLOR);
                	SetPlayerHealth(playerid, 60);
		        	SetPlayerArmour(playerid, 0);
                	format( sMsg, sizeof( sMsg ), "(DC)Admin %s vekje ne e na dolznost.", sMsg );
                	SendClientMessageToAll(COLOR_LIGHTRED, sMsg);
                	AdminDuty[playerid] = 0;
				}
			}
And now how to make it when player go /off duty to hide on map ? Becouse on that script when i go /off im showing on map Yellowed please help me how to hide player when he go /off

[REP ++]
Reply


Messages In This Thread
Help with Duty [REP ++] - by teomakedonija - 10.12.2012, 19:23
Re: Help with Duty [REP ++] - by Mr.Anonymous - 10.12.2012, 19:36
Re: Help with Duty [REP ++] - by FTLOG - 10.12.2012, 22:31
Re: Help with Duty [REP ++] - by teomakedonija - 12.12.2012, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)