12.11.2013, 19:55
Please can someone tell me how to make a pickup without errors Step by Step defining the words
Thanks
Thanks
CreatePickup(MID, type, X, Y, Z, VW); // VW(VirtualWorld) Is Optional
AddPlayerClass(0,-1112.4480,-1637.2107,76.3672,90.8210,0,0,0,0,0,0);
-1112.4480 = Y -1637.2107 = X 76.3672 = Z
new GunPickup; // At the top of your script
GunPickup = CreatePickup(356, 2, 1958.3783, 1343.1572, 15.3746, -1) // This will create a pickup. This are just random coordinates
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == GunPickup) // If the pickup is the pickup we have created..
{ // then..
GivePlayerWeapon(playerid, 31, 500); // Give player a weapon (M4 with 500 bullets)
}
return 1;
}