How do add ammo?
#1

public OnGameModeInit()
{
SetGameModeText("[...] V2.0");
//Weapon Spawn
CreatePickup(348, 2, 2443.1848,-1979.8909,13.5469); // Emmets deagle

348 - deagle, how can i add ammo, it spawns with 10 ammo only
Reply
#2

in OnPlayerPickUpPickup ;]
Reply
#3

How, I do this?
Reply
#4

Help somebody?
Reply
#5

new emments_deagle;
public OnGameModeInit()
{
SetGameModeText("[...] V2.0");
//Weapon Spawn
emments_deagle = CreatePickup(348, 2, 2443.1848,-1979.8909,13.5469); // Emmets deagle

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == emments_deagle)
{
GivePlayerWeapon(playerid, 24, 77); //77 is ammo
}
Reply
#6

Thanks, worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)