command(me, playerid, params[])
{
new string[128];
if(strlen(params) < 2) return SendClientMessage(playerid, 0xFFFF000, "Mнnimo 2 caracteres.");
format(string, sizeof(string), "* %s %d %s ", GetName(playerid), playerid, params);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 1;
}
command(do, playerid, params[])
{
new string[128], Float: Pos[3];
if(strlen(params) < 2) return SendClientMessage(playerid, 0xFFFF000, "Mнnimo 2 caracteres.");
format(string, sizeof(string),"%s (%d) ((%s))", GetName(playerid), playerid, params);
for(new i; i < MAX_PLAYERS; i++)
{
if(i != playerid && IsPlayerConnected(i) && IsPlayerInRange(i, DO_RANGE, DO_RANGE, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), string);
}
}
SendClientMessage(playerid, GetPlayerColor(playerid), string);
return 1;
}
0xFFFF000,
http://www.mxstudio.com.br/Conteudos...aver/Cores.htm ai vc escolhe a nova cor q vc quer e poe assim 0x(aqui vc poi o codigo da nova cor)ai vc termina com 00 ou FF |
GetPlayerColor = Pega a cor do jogador. Entгo para por uma cor no jogador use SetPlayerColor.
|