15.12.2012, 00:00
Quote:
Cores Hexadecimal nгo sгo permitidas em GameText.
pawn Code:
|
@jdsfenix: tenta assim o cmd "cv"
pawn Code:
COMMAND:cv(playerid, params[])
{
new Name[24], Msg[128], Message[128];
if (APlayerData[playerid][PlayerLevel] > 1)
{
GetPlayerName(playerid, Name, sizeof(Name));
if (APlayerData[playerid][LoggedIn] == true)
{
if (sscanf(params, "s[128]", Message)) SendClientMessage(playerid, 0xFF0000AA, "Use: /cv [texto]");
else
{
for (new i; i < MAX_PLAYERS; i++)
{
if (APlayerData[i][LoggedIn] == true)
{
if (APlayerData[i][PlayerClass] == APlayerData[playerid][PlayerClass])
{
format(Msg, 128, "{FF00FF}|Anuncio Admin| %s: {FF00FF}%s", Name, Message);
SendClientMessageToAll(-1,Msg);
}
}
}
}
}
}
else
return 0;
return 1;
}