29.07.2012, 13:18
Hey guys..
I have created a pickup and i wanted to give it a function here is the things i did .. !!
First i defined it ,
added this
Then added this
The pickup was in the game and when i went to it showed "type bankhelp...." ... I made this as a filterscript.
In my gamemode script i searched for pickup id and i got the same as it was showing like 'type bank help .. "
How can make this as my command ?
NEED HELP , THANK YOU!
I have created a pickup and i wanted to give it a function here is the things i did .. !!
First i defined it ,
pawn Код:
new heli;
pawn Код:
heli = AddStaticPickup(1318, 1, -2353.2561,-1616.3075,483.6445); //Spawn PickUp
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == heli) GivePlayerMoney(playerid,100000);
return 1;
}
In my gamemode script i searched for pickup id and i got the same as it was showing like 'type bank help .. "
How can make this as my command ?
pawn Код:
GivePlayerMoney(playerid,1000000);