Posts: 1,219
Threads: 51
Joined: Jul 2012
Put it in OnPlayerUpdate
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);
}
}
}
This send the Weapon and the Player to RCOn Admins
Posts: 30
Threads: 9
Joined: Sep 2011
Reputation:
0
Will this work if the player is lagging?
Posts: 1,219
Threads: 51
Joined: Jul 2012