pick up help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pick up help (
/showthread.php?tid=108650)
pick up help -
aceisnice - 15.11.2009
how do u make money pickups and red checkpoints? i tyied but not working
Re: pick up help -
aceisnice - 15.11.2009
k pick up shows up is is all i got its a cash pickup how do i give it value of $ 10000 CreatePickup(1212,3,1449.6963,-805.7767,84.25180, -1);
Re: pick up help -
Lajko1 - 15.11.2009
wiki will explain you all
Re: pick up help -
CuervO - 15.11.2009
Quote:
Originally Posted by aceisnice
CreatePickup(1212,3,1449.6963,-805.7767,84.25180, -1);
|
First of All you must Define the Pickup.
Add at the top of the script (after the #define value)
You can define the "money" as you want, this is just an example
_________________________________________________
After it, Define the Pickup as "money" (or anything else that you defined)
pawn Код:
money = CreatePickup(1212,3,1449.6963,-805.7767,84.25180, -1);
_________________________________________________
Search for
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
Then Add Below it:
pawn Код:
if (pickupid == money)
{
GivePlayerMoney(playerid,10000);
}
Pickup id is the defined pickup of above, it depends on what you defined
Re: pick up help -
aceisnice - 15.11.2009
This is what i was trying to do but it was giveing me errors and ive done it right editing a sona script
this is what i get C:\Users\Familypc\Desktop\desktop icons\SAMP 3 SERVERS\test server\gamemodes\Troy.pwn(590) : error 029: invalid expression, assumed zero
C:\Users\Familypc\Desktop\desktop icons\SAMP 3 SERVERS\test server\gamemodes\Troy.pwn(590) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Users\Familypc\Desktop\desktop icons\SAMP 3 SERVERS\test server\gamemodes\Troy.pwn(591) : error 001: expected token: ";", but found "if"
C:\Users\Familypc\Desktop\desktop icons\SAMP 3 SERVERS\test server\gamemodes\Troy.pwn(591) : error 017: undefined symbol "pickupid"
C:\Users\Familypc\Desktop\desktop icons\SAMP 3 SERVERS\test server\gamemodes\Troy.pwn(593) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: pick up help -
aceisnice - 15.11.2009
sorry but forgot my gm im editing dosent have a public OnPlayerPickUpPickup
Re: pick up help -
troy52192 - 02.02.2010
use my new gamemode and add LCS to it. you need a pickup streamer