Posts: 4,930
Threads: 467
Joined: Dec 2010
pawn Код:
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp("/comando", cmdtext, true, 10) == 0) {
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"No Eres Administrador RCON");
for(new i=0; i<GetMaxPlayers(); i++) {
if(IsPlayerConnected(i)) {
if(GetPlayerWeapon(i) == WEAPON_MINIGUN) {
new nombre[MAX_PLAYER_NAME],string[128];
GetPlayerName(i,nombre,sizeof(nombre));
format(string, sizeof(string), "%s [ID:%d] Tiene una Minugun.", nombre, i);
SendClientMessage(playerid,-1,string);
}
}
}
return true;
}
return false;
}