20.02.2009, 18:36
Here's an example.
pawn Код:
//Top of script
new Money;
Money = CreatePickup(blah blah blah);
//Rest of script
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Money) {
SendClientMessage(playerid, 0x00FF00FF, "You found $200!");
GivePlayerMoney(playerid, 200);
}
return 1;
}
//Rest of script