#1

hi i was woundering if i could make an object where i can walk into it and pick it up withought showing it on the player and gain money



So if someone could help that would be nice thx for ur time
Reply
#2

pawn Код:
#include <a_samp>

new Pickup;

public OnGameModeInit()
{
MoneyPickup = CreatePickup(pickupid, type, Float:x, Float:y, Float:z);

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Pickup)
{
GivePlayerMoney(playerid, amount);
return 1;
}
return 1;
}
https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/Pickup_help
Reply
#3

Ahh good one eddy...

That script worked well im just woundering if i can actuly creat an oberct that you can see like a briefe case and when you pick it up you continualsy gain mone yif thats posible wich it is coz iv seen it done on anouther sever but they wont tell me shit so just woundering thx for ur time
Reply
#4

For pickupid use '1210'. That's briefcase pickup
Reply
#5

ah
Reply
#6

hmm k im getting these errors



C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\asfr.pwn(334) : error 017: undefined symbol "MoneyPickup"
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\asfr.pwn(334) : error 017: undefined symbol "type"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#7

Quote:
Originally Posted by еddy
[pawn]

MoneyPickup = CreatePickup(pickupid, type, Float, Float:y, Float:z);
What is type? coz thats giveing me problems and moneypickup should be just pickup coz you have no outher reeference to moneypickup any where
Reply
#8

ok iv got it working now with that same script i ned the following.....


1.Have the money on a time like 1000 evrey 30sec

2.if 1 person hase it no one can get it unless they kill that person [Link to 3]

3.if the person holding it dies it gets droped on the ground and someone can come alonge and pick it up then it start the money timer again but only the person who hase the case gets the money
Reply
#9

pawn Код:
#include <a_samp>

new Pickup;

public OnGameModeInit()
{
Pickup = CreatePickup(1212, 2, Float:x, Float:y, Float:z);
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Pickup)
{
GivePlayerMoney(playerid, amount);
return 1;
}
return 1;
}
And please use the 'Modify' button instead of triple posting. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)