#2

I would try to create a very frequent timer (or maybe OnPlayerUpdate) and a boolean like bool:ToldOutOfAmmo[MAX_PLAYERS];
Every time the timer passing you check wether or not the player has a weapon (just check his weapon-id) and then GetPlayerAmmo. If it's 0 check if ToldOutOfAmmo is true, else send a message to him and set it to true.
For the /reload just use SetPlayerAmmo then.
Hope it helped.
Reply


Messages In This Thread
ammo - by Zonoya - 01.09.2011, 20:10
AW: ammo - by Padarom - 01.09.2011, 20:21
AW: ammo - by Zonoya - 01.09.2011, 20:23
Re: ammo - by Vince - 01.09.2011, 20:25
Re: ammo - by Zonoya - 01.09.2011, 20:29
AW: ammo - by Padarom - 01.09.2011, 20:31
Re: ammo - by Zonoya - 01.09.2011, 20:35
Re: ammo - by Zonoya - 01.09.2011, 21:04
Respuesta: ammo - by Alex_Obando - 01.09.2011, 21:10
Re: ammo - by Zonoya - 01.09.2011, 21:15
AW: ammo - by Padarom - 01.09.2011, 21:20
Re: ammo - by Zonoya - 01.09.2011, 21:22
AW: ammo - by Padarom - 01.09.2011, 21:47
Re: ammo - by Zonoya - 02.09.2011, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)