One bullet in weapon
#3

First you must declare GetPlayerAmmo as a word/or something else!
Example:
Quote:

new currentammo = GetPlayerAmmo( playerid );

Then I suggest you to make a timer instead of using OnPlayerUpdate, like this:
Quote:

SetTimer( "TestPlayerAmmo", 1500, true );

Then Create the Callback for TestPlayerAmmo:
Quote:

TestPlayerAmmo( playerid )
{
new currentammo = GetPlayerAmmo( playerid );
if( currentammo/GetPlayerAmmo( playerid ) < 1 )//as this is an example.
{
print( "Player One have only 1 Ammo left" );

}
}

Reply


Messages In This Thread
One bullet in weapon - by Smacky - 20.09.2012, 19:48
Re: One bullet in weapon - by Glint - 20.09.2012, 19:51
AW: One bullet in weapon - by Forbidden - 20.09.2012, 19:57
Re: One bullet in weapon - by YourLord - 20.09.2012, 21:48
Re: One bullet in weapon - by RedFusion - 20.09.2012, 22:55
Re: One bullet in weapon - by Smacky - 24.09.2012, 14:45
Re: One bullet in weapon - by vIBIENNYx - 24.09.2012, 15:05

Forum Jump:


Users browsing this thread: 3 Guest(s)