Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: kitt85711 on July 27, 2011, 04:00:08 pm

Title: Pickups
Post by: kitt85711 on July 27, 2011, 04:00:08 pm
How do I make special pickups? Like I need some Armour pickups somewhere and some Weapons pickups and I really want to know how to add a bushiness pickup where you can buy it and if u wait it pays you money. Can someone help?  :-\
Title: Re: Pickups
Post by: Fuzzy168 on July 27, 2011, 04:21:28 pm
You using what script?
Title: Re: Pickups
Post by: kitt85711 on July 27, 2011, 04:39:42 pm
I'm using GUPS, is it possible?
Title: Re: Pickups
Post by: Fuzzy168 on July 27, 2011, 04:47:22 pm
hmmm... Sorry, I can't help you. But you could try AddStaticPickup if your using the normal script mode
Title: Re: Pickups
Post by: yazeen on August 01, 2011, 05:03:05 pm
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
Title: Re: Pickups
Post by: heekz.shadow on August 02, 2011, 10:01:23 am
if you are too lazy to do /s and add it on AddStaticPickup, I will upload my pickup script ;)
Title: Re: Pickups
Post by: kitt85711 on August 04, 2011, 08:58:13 am
Thanks again yazeen, once again shadow lol your a douche :P just saying. I didn't even know about /s
Title: Re: Pickups
Post by: BIG[H] on August 04, 2011, 11:47:30 am

[pawn]/s[/pawn]
  ^ HOLY CRAP