Sending Message
#4

Create a new variable.
For example, i'll call it Var.
So, on top of the script, make a new variable.
pawn Код:
new Var;
Then go to public "OnGameModeInit()".
Then you do this:
pawn Код:
Var = CreatePickup(modelid, type, x, y, z)
then go to public "OnPlayerPickupPickup(playerid, pickupid)".
Then you do this:
pawn Код:
if(pickupid == Var)
{
    // Something
}
I hope you understand what I did here.
Reply


Messages In This Thread
Sending Message - by Alex_Valde - 01.09.2010, 17:11
Re: Sending Message - by Voldemort - 01.09.2010, 17:30
Re: Sending Message - by ||123|| - 01.09.2010, 17:35
Re: Sending Message - by Maxips2 - 01.09.2010, 17:41
Re: Sending Message - by Alex_Valde - 01.09.2010, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)