11.06.2012, 13:23
pawn Код:
CMD:Reportar(playerid, params[])
{
new id;
new texto[128];
new Str[128];
new inome[MAX_PLAYER_NAME];
new nome[MAX_PLAYER_NAME];
if(sscanf(params,"us",id,texto)) return SendClientMessage(playerid,-1,"USE: /reportar [id] [motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Player nгo conectado");
GetPlayerName(id,inome,MAX_PLAYER_NAME);
GetPlayerName(id,nome,MAX_PLAYER_NAME);
SendClientMessage(playerid,-1,"Obrigado Por Reportar...");
for(new i; i < MAX_PLAYERS; ++i)
{
if(PlayerDados[playerid][Admin] > 0)
{
format(Str, sizeof(Str),"AVISO: %s reportou %s motivo: %s",nome,inome,texto);
SendClientMessage(i, -1,Str);
}
}
return true;
}