07.12.2013, 09:13
pawn Код:
CMD:av(playerid,params[])
{
if(Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
new a[170], new pt2[128];
format(a,sizeof a,"Admin %s: {FFFFFF}%s", GetName(playerid),params);
SendClientMessageToAll(rosa,a);
for(new pt = 0; pt < MAX_PLAYERS; pt++)
{
if(IsPlayerConnected(i))
{
if(Player[i][admin] != 0)
{
format(pt2, sizeof(pt2), "O admin %s usou o comando /av", GetName(playerid));
SendClientMessage(i, -1, pt2);
}
}
}
return 1;
}