26.04.2010, 23:01
I have a few pickups (weapons) in my Stadium and I need them to give a certain amount of ammo when they are picked up.
The problem i'm having is, I used the sa-mp wiki and still, it does not give the player the amount of ammo i specify.
P.S Can someone teach me how to do the pawn tags lol.
The problem i'm having is, I used the sa-mp wiki and still, it does not give the player the amount of ammo i specify.
Код:
new Sawnoff; new Sawnoff; new Armour; new Health; new Tec9; new Cash; //in pleasure domes
Код:
//Pickups Sawnoff = CreatePickup(350, 2, -1043.9336,1094.0066,1346.3627, -1); //sawnoff Armour = CreatePickup(1240, 2, -1038.3934,1025.3640,1343.3010, -1); //health Health = CreatePickup(1242, 2, -1067.4795,1088.3970,1346.5259, -1); //armour Tec9 = CreatePickup(372, 2, -1018.7241,1062.9752,1343.0780, -1); //tec9
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == Armour) { SetPlayerArmour(playerid, 100.0); } else if(pickupid == Sawnoff) { GivePlayerWeapon(playerid,26,500); } else if(pickupid == Tec9) { GivePlayerWeapon(playerid,32,500); } else if(pickupid == Health) { SetPlayerHealth(playerid, 100); } else if(pickupid == Cash) { GivePlayerMoney(playerid, 1000); } return 1; }
P.S Can someone teach me how to do the pawn tags lol.