help with pickup !
#1

i have one question
i have created a green house pickup in my server
but i dont know how to create that when i stand in pickup
it says "house name" any message only that appears when i stand in pickup

and one more
when i create money pickup how to create to give player money
when player picks up PICKUP

thanks for help
~Matej
Reply
#2

public OnPlayerPickUpPickup(playerid,pickupid)

That is the callback you're looking for...
Reply
#3

Quote:
Originally Posted by XGh0stz
public OnPlayerPickUpPickup(playerid,pickupid)

That is the callback you're looking for...
um.. yeah do i need to put that on player pick up pickup
Reply
#4

Quote:
Originally Posted by XGh0stz
public OnPlayerPickUpPickup(playerid,pickupid)

That is the callback you're looking for...
yeah that is the callback but
i need to put something there that it will say
or give player money when he stands in pickup
Reply
#5

Quote:
Originally Posted by Matej_SLO™
Quote:
Originally Posted by XGh0stz
public OnPlayerPickUpPickup(playerid,pickupid)

That is the callback you're looking for...
yeah that is the callback but
i need to put something there that it will say
or give player money when he stands in pickup
Why don't you create it more simple

example :

lol = Addstat..
than You simply use "lol" where ever you want

So

Quote:

public OnPlayerPickUpPickup(playerid,pickupid)
{
//here you add that stuff and your simpply done..

Reply
#6

i tryed this but it doesnt work:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash) GivePlayerMoney(playerid,10000);
}
Reply
#7

i found that here:
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#8

Quote:
Originally Posted by Matej_SLO™
You sure you created everything right ?
Reply
#9

yeah i did
but i think i did some things wrong
i dont know
i did all the same but then are 1-2 errors
Reply
#10

Quote:
Originally Posted by Matej_SLO™
yeah i did
but i think i did some things wrong
i dont know
i did all the same but then are 1-2 errors
Post errors here so we can help you.. Or just come on msn/xfire and i'll help you there :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)