13.08.2013, 00:43
tens ae um exemplo feito em zcmd juntamente com sscanf
pawn Код:
CMD:lindo(playerid, params[])
{
new string[256], id, motivo[64], pname[MAX_PLAYER_NAME];
GetPlayerName(id, pname, sizeof(pname));
if(sscanf(params, "us[64]", id, motivo))
{
SendClientMessage(playerid, Vermelho, "Digite: /lindo [id] [motivo]");
return 1;
}
format(string, sizeof(string), "%s e lindo. Motivo: %s ( /afk )", pname, AFKMotivo);
SendClientMessageToAll(-1, string);
return 1;
}