for any script this works add it on [pawn]OnGameModeInit() [/pawn]
USAGE: [pawn]AddstaticPickup(pickupid,pickupnameinnumber,Xcoordinate,Ycoordinate,Zcoordinate)[/pawn]
EXAMPLE: [pawn]AddstaticPickup(12,407,213,-456,304);
[/pawn]
Definition:
pickupid = any number you want can use any but it should be number but cannot add 2 pickups with two id's same
Pickupnameinnumber = Should be number as wiki is dead its hard to find pickup names (I used 407 which is property pickup)
You Will learn how to locate coordinate in your Graph in higher classes....
X Coordinate= X Coordinate in Your map
Y Coordinate= X Coordinate in Your map
Z Coordinate= Z Height Coordinate in your map
now if you want to add some stuff when a player picks up a pickup try this:
Note: in the below scripts when a player pickups up the pickup it give ya cash.. i am doing it using the example i mentioned at top
[pawn]public OnPickedUp( pickupid, playerid )
{
if(pickupid = 12)
{
new cash = GetPlayerCash(playerid);
SendClientMessage("You Picked up cash from your home");
SetPlayerCash(playerid,cash+400); //Gives you additional 400 use - to Subtract 400 from him
}
[/pawn]
For GUPS when a player pickup
[pawn]public OnPickedUp( pickupid, playerid )
{
if(pickupid = 12)
{
SendClientMessage("You Picked up cash from your home");
IncPlayerHandcash(playerid,400); //Gives you additional 400 use DecPlayerHandCash to decrease
}
[/pawn]
[pawn] //Dosent effect your script [/pawn]
Hope it helped you