Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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? :-\
-
You using what script?
-
I'm using GUPS, is it possible?
-
hmmm... Sorry, I can't help you. But you could try AddStaticPickup if your using the normal script mode
-
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
-
if you are too lazy to do /s and add it on AddStaticPickup, I will upload my pickup script ;)
-
Thanks again yazeen, once again shadow lol your a douche :P just saying. I didn't even know about /s
-
[pawn]/s[/pawn]
^ HOLY CRAP