Need Help With GetPlayerColor
#1

Hello i was making a command and i need help with this :
Код:
COMMAND:hackclanleader(playerid, params)
{
    if(hackb[playerid] == true)
    {
        if(hackel[playerid] == true)
	{
		hackel[playerid] = false;
		hackl[playerid] = Create3DTextLabel(".:HACK CLAN LEADER:.", 0x2EFF83FF, 30.0, 40.0, 50.0, 40.0, 0);
		Attach3DTextLabelToPlayer(hackl[playerid], playerid, 0.0, 0.0, 0.7);
		TextDrawShowForPlayer(playerid, hack);
        	SendClientMessage(playerid, 0x2EFF83FF, "[HACK] {FFFFFF}Welcome Leader");
		new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
		GetPlayerName(playerid, name, sizeof(name));
		format(string, sizeof(string), "[HACK] {FFFFFF}OMG Leader %s is Here :O.", name);
		SendClientMessageToAll(0x2EFF83FF, string);
                new output[144];
		format(output, sizeof(output), "0x%06x", GetPlayerColor(playerid) >>> 8);
		}
		else if(hackel[playerid] == false)
		{
		    hackel[playerid] = true;
		    Delete3DTextLabel(hackl[playerid]);
		    SetPlayerColor(playerid, output);
		    TextDrawHideForPlayer(playerid, hack);
        	    SendClientMessage(playerid, 0x2EFF83FF, "[HACK] {FFFFFF}GoodBye Leader");
		    new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
		    GetPlayerName(playerid, name, sizeof(name));
		    format(string, sizeof(string), "[HACK] {FFFFFF}OMG Leader %s is Gone :O.", name);
		    SendClientMessageToAll(0x2EFF83FF, string);
		}
	}
	else SendClientMessage(playerid, 0x2EFF83FF, "[HACK] {FFFFFF}You are not HACK CLAN LEADER!");
	return 1;
}
How can i put output as color to this line
Код:
SetPlayerColor(playerid, output);
Reply


Messages In This Thread
Need Help With GetPlayerColor - by Protonix - 25.04.2014, 14:40
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 14:43
Re: Need Help With GetPlayerColor - by Protonix - 25.04.2014, 14:46
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 14:56
Re: Need Help With GetPlayerColor - by Protonix - 25.04.2014, 15:04
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)