Public feed #888246

Unnamed

public text v1 · immutable
Raw Edit
·published 2008-02-01 23:34 UTC
rendered paste body
//At the top of the Gamemode:
new Pickup;
new Pickup2; //The 2ND pickup

//Put this next to your other pickups, in OnGameModeInit :)

Pickup = CreatePickup(,2,1743.1935,-1849.4183,13.5812);
Pickup2 = CreatePickup(blablabla); //THE 2ND PICKUP :)                  
//Now, put this at the very bottom of your script
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Pickup)
    {
    //Do whatever here, like send a message, etc :)
    SendClientMessage(playerid,COLOR_YELLOW,"Hey");
    }
    if(pickupid == Pickup2)
    {
    //Do whatever here
    }

}

//Then save & compile :D