16.09.2012, 10:43
Put it in OnPlayerUpdate
This send the Weapon and the Player to RCOn Admins
PHP код:
if(GetPlayerAmmo(playerid) == 0)
{
new waffe[MAX_PLAYERS];
waffe[playerid] = GetPlayerWeapon(playerid);
new string[180];
new name[MAX_PLAYER_NAME];
format(string,sizeof(string),"%s's Weapon: %s has no Ammo",GetPlayerName(playerid,name,sizeof(name)),waffe);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i,-1,string);
}
}
}