pick up help
#1

how do u make money pickups and red checkpoints? i tyied but not working
Reply
#2

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);
Reply
#3

wiki will explain you all
Reply
#4

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)

pawn Код:
new money;
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
Reply
#5

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


Reply
#6

sorry but forgot my gm im editing dosent have a public OnPlayerPickUpPickup
Reply
#7

use my new gamemode and add LCS to it. you need a pickup streamer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)