1
mIRC/pawn Scripting / Re: How to add a function to a pickup?
« on: February 10, 2008, 11:25:16 pm »
Hai
- Last question
I want to create 2 pickups with the ID = 107.
1pickupId 107 = DOCKS and when you pickup it ups you to the roof
2pickupId 107 = Downtown if you pickup you get armour..
Where to add there 1 function to the docks pickup and another function to downtown pickup?
Thanks Regards.
- Last question
I want to create 2 pickups with the ID = 107.
1pickupId 107 = DOCKS and when you pickup it ups you to the roof
2pickupId 107 = Downtown if you pickup you get armour..
Code: [Select]
if ($3 == 107) {
set %a $rand(100,200)
vcmp.cash+ %id %a
vcmp.msg %id ;example CASH PICKUP: Picked Up Cash - Amount: $ $+ %a $+ , Location: $vcmp.area(%id)
}
if ($3 == 107) {
set %a $rand(100,200)
vcmp.cash+ %id %a
vcmp.msg %id ;example CASH PICKUP: Picked Up Cash - Amount: $ $+ %a $+ , Location: $vcmp.area(%id)
}
Where to add there 1 function to the docks pickup and another function to downtown pickup?
Thanks Regards.