help with scripting this!
#5

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
PHP код:
public OnPlayerUpdate(playerid)
{
if(
GetPlayerWeapon(playerid) == 27)
{
GivePlayerWeapon(playerid,270);
GivePlayerWeapon(playerid,31,5000);//amount of ammo you want replace it with 5000
}
    return 
1;

Try this
Giving player 0 ammo doesn't remove his current weapon.
Also, your code gets the weapon that he is holding in his hand not the one he posses.
Reply


Messages In This Thread
help with scripting this! - by Puff - 24.01.2015, 12:27
Re: help with scripting this! - by nezo2001 - 24.01.2015, 12:33
Re: help with scripting this! - by ATGOggy - 24.01.2015, 12:34
Re: help with scripting this! - by Puff - 24.01.2015, 12:38
Re: help with scripting this! - by ATGOggy - 24.01.2015, 12:40
Re: help with scripting this! - by nezo2001 - 24.01.2015, 12:53
Re: help with scripting this! - by ATGOggy - 24.01.2015, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)