08.05.2011, 21:48
pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
dcmd_reportar(playerid, params[])
{
if(!strlen(params)) return SendClientMessage( playerid, 0xFFF000AA, "Uso correto: /reportar [Texto]" );
new J[ MAX_PLAYER_NAME ], sStr[ 128 ];
format( sStr, sizeof( sStr ), "Jogador(a) %s reportou: %s", J, params );
for( new k = 0; k < GetMaxPlayer(); k++ )
{
if( IsPlayerConnected( i ) && IsPlayerAdmin( i ) )
{
SendClientMessage( i, 0xFFF000AA, sStr );
}
}
return true;
}