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