25.04.2014, 14:40
Hello i was making a command and i need help with this :
How can i put output as color to this line
Код:
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; }
Код:
SetPlayerColor(playerid, output);