26.09.2012, 02:15
ae tente isto
pawn Код:
CMD:sos(playerid, params[])
{
new IDx, Texto[126], snd[MAX_PLAYER_NAME];
GetPlayerName(playerid,snd,sizeof(snd));
if(sscanf(params, "si", Texto, IDx)) return SendClientMessage(playerid, VERMELHO_ESCURO, "[x] Use /sos [Dъvida aqui]");
if(PlayerInfo[IDx][pAdmin] > 0)
{
format(String, sizeof(String), "{FA5282}[ HELP ] por %s [%d]: %s", snd, playerid, Texto);
GameTextForPlayer(IDx, "~r~NOVATO PEDIU AJUDA!", 3000, 3);
SendClientMessage(IDx, 0xEAEA00AA, String);
}
}
SendClientMessage(playerid, VERMELHO_ESCURO, "[ > ] Pedido de ajuda enviado com sucesso!");
return 1;
}