2 pickup problems
#1

Here is the script

new weapon;
new jetpack;
new jetpacktwo;

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == weapon)
{
GivePlayerWeapon(playerid,36, 5); // 36 is a heat seek rocket launcher and 5 is the ammo
}
else if (pickupid == jetpack)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
}
else if (pickupid == jetpacktwo)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
}
return 1;
}


public OnGameModeInit()
{
weapon = AddStaticPickup(360, 2, 47.8186,-256.2100,1.6644, -1);
jetpack = AddStaticPickup(370,2,19965.1035,-1496.4868,6.5784,-1);
jetpacktwo= AddStaticPickup(370,2,-78.8936,-302.7246,1.4219,-1);
return 1;
}



when i tested it on my server, i picked up the rocket launcher but i didn't get 5 ammo! i got 3! why?

The other problem is that i can't see any kind of pickups very far away in the ocean
Reply
#2

Does this script seem right? cause i don't get why it doesn't work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)