Markers at map (+rep)
#1

This marker at map is visible to others when im going to /aduty


It should not be on map so players wont followed us.

How do i remove it??

Heres my /aduty code

Код:
CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "This is an admin only command!");
	{
	    //if(PlayerInfo[playerid][pAdminNameSet] == 1)
	    //{
			if(PlayerInfo[playerid][pAdminDuty] == 0)
				{

					SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
					PlayerInfo[playerid][pAdminDuty] = 1;
					SetPlayerHealth(playerid, 100000);
					SetPlayerArmour(playerid, 100000);
					SetPlayerColor(playerid, COLOR_REALRED);
					//SetPlayerSkin(playerid, 294); - Commented by Voltage
					AdminLabel[playerid] = Create3DTextLabel("{FFFF00}Admininstrator ON Duty\n{FF0000}Do not attack!",0x008080FF,30.0,40.0,50.0,40.0,0);
		  			Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.4);
					//strcat(NormalName[playerid], GetPlayerNameEx(playerid));
					//SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
					new string[128];
					format(string, sizeof(string), "Administrator %s(ID %d) is now on Admin Duty!", GetPlayerNameEx(playerid), playerid);
					ABroadCast(COLOR_YELLOW, string, 1);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
					//SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);
				 	Delete3DTextLabel(AdminLabel[playerid]);
					SetPlayerHealth(playerid, 100);
					SetPlayerArmour(playerid, 0);
					SetPlayerToTeamColor(playerid);
					//SetPlayerSkin(playerid, 299); - Commented by Voltage
					PlayerInfo[playerid][pAdminDuty] = 0;
					new string[128];
					format(string, sizeof(string), "Administrator %s(ID %d) is now Off Admin Duty! ( Leave the Admin to Roleplay )", GetPlayerNameEx(playerid), playerid);
					ABroadCast(COLOR_YELLOW, string, 1);
					//SetPlayerName(playerid, NormalName[playerid]);
				}
		//} else return SendClientMessage(playerid, COLOR_WHITE, "You don't have an admin name yet! Contact Server Owner to set your admin name!");
	}
	return 1;
}
Reply
#2

pawn Код:
//SetPlayerColour(playerid, REALRED
And add

pawn Код:
SetPlayerMarkerForPlayer(playerid,  1, (GetPlayerColor(1) & 0xFFFFFF00));
Reply
#3

Quote:
Originally Posted by [vTc]Patroool
Посмотреть сообщение
pawn Код:
//SetPlayerColour(playerid, REALRED
And add

pawn Код:
SetPlayerMarkerForPlayer(playerid,  1, (GetPlayerColor(1) & 0xFFFFFF00));
Look.

My player color isnt changing to realred. it always white.

can you help me?

Код:
CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "This is an admin only command!");
	{
	    //if(PlayerInfo[playerid][pAdminNameSet] == 1)
	    //{
			if(PlayerInfo[playerid][pAdminDuty] == 0)
				{

					SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
					PlayerInfo[playerid][pAdminDuty] = 1;
					SetPlayerHealth(playerid, 100000);
					SetPlayerArmour(playerid, 100000);
					//SetPlayerColor(playerid, COLOR_REALRED);
					SetPlayerMarkerForPlayer(playerid,  1, ( GetPlayerColor( 1 ) & 0xFF0606FF ) );
					//SetPlayerSkin(playerid, 294); - Commented by Voltage
					//AdminLabel[playerid] = Create3DTextLabel("{FFFF00}Admininstrator ON Duty\n{FF0000}Do not attack!",0x008080FF,30.0,40.0,50.0,40.0,0);
					AdminLabel[playerid] = CreateDynamic3DTextLabel("{FFFF00}Administrator on duty!\n{FF1515}Do not Attack!", 0xF600F6FF, 0, 0, -20, 25, playerid);
					Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, AdminLabel[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
		  			Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.4);
					//strcat(NormalName[playerid], GetPlayerNameEx(playerid));
					//SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
					new string[128];
					format(string, sizeof(string), "Administrator %s(ID %d) is now on Admin Duty!", GetPlayerNameEx(playerid), playerid);
					ABroadCast(COLOR_YELLOW, string, 1);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
					//SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);
				 	Delete3DTextLabel(AdminLabel[playerid]);
					SetPlayerHealth(playerid, 100);
					SetPlayerArmour(playerid, 0);
					SetPlayerToTeamColor(playerid);
					//SetPlayerSkin(playerid, 299); - Commented by Voltage
					PlayerInfo[playerid][pAdminDuty] = 0;
					new string[128];
					format(string, sizeof(string), "Administrator %s(ID %d) is now Off Admin Duty! ( Leave the Admin to Roleplay )", GetPlayerNameEx(playerid), playerid);
					ABroadCast(COLOR_YELLOW, string, 1);
					//SetPlayerName(playerid, NormalName[playerid]);
				}
		//} else return SendClientMessage(playerid, COLOR_WHITE, "You don't have an admin name yet! Contact Server Owner to set your admin name!");
	}
	return 1;
}
Reply
#4

Just remove SetPlayerMapMarker.. It's pretty straight forward
Reply
#5

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
Just remove SetPlayerMapMarker.. It's pretty straight forward
like this?

Код:
(playerid,  1, ( GetPlayerColor( 1 ) & 0xFF0606FF ) );
Reply
#6

Quote:
Originally Posted by ChristianIvann09
Посмотреть сообщение
like this?

Код:
(playerid,  1, ( GetPlayerColor( 1 ) & 0xFF0606FF ) );
.. Remove the whole line.
Reply
#7

Get banned.
Reply
#8

Quote:
Originally Posted by Ari
Посмотреть сообщение
Get banned.
what do u mean? wtf
Reply
#9

Quote:
Originally Posted by Ari
Посмотреть сообщение
Get banned.
you were also a newbie, so stop harshing him.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)