Author Topic: Pickups  (Read 3486 times)

0 Members and 1 Guest are viewing this topic.

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Pickups
« 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?  :-\

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Pickups
« Reply #1 on: July 27, 2011, 04:21:28 pm »
You using what script?
I'm beginning to feel like a Lag God, Lag God

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Re: Pickups
« Reply #2 on: July 27, 2011, 04:39:42 pm »
I'm using GUPS, is it possible?

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Pickups
« Reply #3 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
I'm beginning to feel like a Lag God, Lag God

yazeen

  • Guest
Re: Pickups
« Reply #4 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

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Pickups
« Reply #5 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 ;)
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Re: Pickups
« Reply #6 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

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Pickups
« Reply #7 on: August 04, 2011, 11:47:30 am »

[pawn]/s[/pawn]
  ^ HOLY CRAP
Outdoor city server Administrator, FS server owner!