23.02.2010, 18:56
Quote:
Originally Posted by dice7
If you open a blank script, you'd see a return 1;
And your OnPlayerPickUpPickup doesn't work, because you need to use if-else if to check the pickupid |
pawn Код:
new bizPickup;
new bizExitPickup;
new bizInfoPickup;
public OnFilterScriptInit()
{
bizPickup = CreatePickup(...
bizExitPickup = CreatePickup(...
bizInfoPickup = CreatePickup(...
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
printf("Pickup %i picked up ((filterscript))",pickupid);
if(pickupid == bizPickup)
{
//code
return 1;
}
if(pickupid == bizExitPickup)
{
//code
return 1;
}
if(pickupid == bizInfoPickup)
{
//code
return 1;
}
return 0;
}