CMD:m(playerid, params[])
{
if(Profissao[playerid] == Policial)
{
SendClientMessageToAll(0xFFFF00AA, "-----------------|* POLICIA MILITAR *|-------------------");
SendClientMessageToAll(0xFFFF00AA, "Parado Parado, Policia Militar, Digite /mostrarrg %d!", playerid);
SendClientMessageToAll(0xFFFF00AA, "-----------------|* POLICIA MILITAR *|-------------------");
}
else SendClientMessage(playerid, 0xFF0000AA, "[PMESP]{FFFFFF} Voce Nao E Um Policial Militar!");
return 1;
}
stock ReturnName(playerid)
{
new Nome[24];
GetPlayerName(playerid, Nome, 24);
return Nome;
}
CMD:m(playerid, params[]) { if(Profissao[playerid] == Policial) { new str[500]; new str2[500]; format(str, sizeof(str), "-----------------|* POLICIA MILITAR *|-------------------\n"); strcat(str2, str); format(str, sizeof(str), "Parado Parado, Policia Militar, Digite /mostrarrg %d!\n", playerid); strcat(str2, str); format(str, sizeof(str), "-----------------|* POLICIA MILITAR *|-------------------"); strcat(str2, str); SendClientMessageToAll(0xFFFF00AA, str2); } else SendClientMessage(playerid, 0xFF0000AA, "[PMESP]{FFFFFF} Voce Nao E Um Policial Militar!"); return 1; } |
PHP Code:
|
Vocк tem que formatar a mensagem e depois usar o SendClientMessageToAll.
|
CMD:m(playerid, params[])
{
if(Profissao[playerid] == Policial)
{
SendClientMessageToAll(-1, "-----------------|{FFFF00}* POLICIA MILITAR *{FFFFFF}|-------------------");
new don[120];
format(don,sizeof don, "{FFFF00}Parado Parado, Policia Militar, Digite /mostrarrg %s!", ReturnName(playerid));
SendClientMessageToAll(-1, don);
SendClientMessageToAll(-1, "-----------------|{FFFF00}* POLICIA MILITAR *{FFFFFF}|-------------------");
}
else SendClientMessage(playerid, 0xFF0000AA, "[PMESP]{FFFFFF} Voce Nao E Um Policial Militar!");
return 1;
}
stock ReturnName(playerid)
{
new Nome[24];
GetPlayerName(playerid, Nome, 24);
return Nome;
}
CMD:m(playerid, params[])
{
new string[60];
if(Profissao[playerid] == Policial)
{
SendClientMessageToAll(0xFFFF00AA, "-----------------|* POLICIA MILITAR *|-------------------");
format(string, sizeof(string), "Parado Parado, Policia Militar, Digite /mostrarrg %d!", playerid);
SendClientMessageToAll(0xFFFF00AA, string);
SendClientMessageToAll(0xFFFF00AA, "-----------------|* POLICIA MILITAR *|-------------------");
}
else SendClientMessage(playerid, 0xFF0000AA, "[PMESP]{FFFFFF} Voce Nao E Um Policial Militar!");
return 1;
}
Originally Posted by Don_Speed
PHP Code:
|