23.03.2014, 18:33
pawn Код:
new pickup1, pickup2;
OnFilterScriptInit()
{
pickup1 = CreatePickup(1318, 0, x, y, z, 0); //Create First Pickup - Put your x, y,z init
pickup2 = CreatePickup(1318, 0, x, x, z, 0); //Create Second Pikcup - Put your x, y, z init
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
SetPlayerPos(playerid, x, y, z); //Set There pos when first pickup
}
else if(pickupid == pickup2)
{
SetPlayerPos(playerid, x, y, z); //Set There pos when second pickup
}
return 1;
}