Is there any way to check my name's color in-game if im alone in server?
#1

Hello, I wanted to script something, and check in game my name's Color... in the local host I can't see my Name's color because only im there.. Do you guys have any ideas what can I do?
(When i press tab it shows my name in RED, and I cant move that RED marker because only im logged..)
Reply
#2

You can write something in chat, and see your color, lmfao.
Reply
#3

Quote:
Originally Posted by HY
Посмотреть сообщение
You can write something in chat, and see your color, lmfao.
Perhaps he changed his OnPlayerText.


pawn Код:
CMD:mycolor(playerid,params[])
{
    SendClientMessage(playerid,GetPlayerColor(playerid),"This is your color!");
    return 1;
}
Simply use GetPlayerColor.
Reply
#4

no... You didn't understand my question..
I scripted a special color for VIP members.. so they can use command to tog their VIP color..
I wanted to check how this command works.. but I can't check it in-game because Only i'm in game.. and when I press Tab to check my name's color.. it shows me it with a Red Marker..

So I asked if you have any Idea how to check my color in-game or in any site... or whatever.
Reply
#5

Yes, when you done your command.

Add this command. (assuming you use ZCMD)

pawn Код:
CMD:mycolor(playerid,params[])
{
    SendClientMessage(playerid,GetPlayerColor(playerid),"This is your color!");
    return 1;
}
Type this command ingame, it will send a message with your current color!
Reply
#6

Amazing command!!! wow, thanks a lot
Reply
#7

One more thing, when I active the command i made.. which gives me color, it shows it on the map icon..
how to cancel that?
I want that people will just see the name in diffrend color, I dont want them to see this color on map..
Код:
CMD:vipcolor(playerid, params[]) {
    if(PlayerInfo[playerid][pDonator] >= 1)
	{
		if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6)
		{
			SendClientMessage(playerid, COLOR_WHITE, "You can't use this command while in a Faction.");
			return 1;
	    }
		if(PlayerInfo[playerid][pVIPDuty])
		{
			PlayerInfo[playerid][pVIPDuty] = 0;
			SetPlayerToTeamColor(playerid);
			SendClientMessage(playerid, COLOR_WHITE, "You have hidden your VIP color.");
		}
		else
		{
			PlayerInfo[playerid][pVIPDuty] = 1;
			SetPlayerColor(playerid, 0xB2DDEBAA);
			SendClientMessage(playerid, COLOR_WHITE, "You have shown your VIP color.");
		}
	}
	return 1;
}
Reply
#8

OnGameModeInit.

ShowPlayerMarkers(0);
Reply
#9

The chat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)