0 Members and 1 Guest are viewing this topic.
public OnPickedUp(pickupid, playerid){ SendClientMessage(playerid,COLOR_YELLOW,"Hey, you picked something!"); return 1;}
if (pickupid == <ID of pickup> SendClientMessage(playerid,COLOR_GREEN,"You found a cookie"); return 1;
public OnPickedUp(71, playerid){ SendClientMessage(playerid,COLOR_YELLOW,"You drunk a beer!"); SetPlayerDrunk(playerid,300,true); return 1;
AddStaticPickup(71,413,-870.22479248,-297.36553955,11.15551948);
<<< >>><ID>[71] <owner> [none]
OnPickedUp(pickupid,playerid){ if(pickupid == 71) { SendClientMessage(playerid,COLOR_GREEN,"You drink a bear"); SetPlayerDrunk(playerid,300,true); } return 1;}