31
mIRC/pawn Scripting / Re: Auto Event ??
« on: February 26, 2011, 06:47:55 am »
Use timers
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
OnPickedUp(pickupid,playerid)
{
if(pickupid == 71) {
SendClientMessage(playerid,COLOR_GREEN,"You drink a bear");
SetPlayerDrunk(playerid,300,true);
}
return 1;
}
if (pickupid == <ID of pickup>
SendClientMessage(playerid,COLOR_GREEN,"You found a cookie");
return 1;