SA-MP Forums Archive
Fast question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fast question (/showthread.php?tid=304045)



Fast question - davve95 - 16.12.2011

Hi!


I have this code installed:

pawn Код:
//Creating the arrow
new pickupname;

public OnGameModeInit()
{
    pickupname = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
    //Arrow = 1318
    //Type
    //  23 Pickupable, but doesn't disappear on pickup.
    //  2   Pickupable, respawns after some time.
}

public OnPlayerPickUpPickup(playerid,pickupid)
{
    if(pickupid == pickupname)
    {
        //Your function
    }
}
But my question is: I need 1 code for where the "Pick up"/Arror should be (That you hit so you come inside the interior) And 1 for whats interior it is so can some one tell me where I should put arrow code and the interior code...

I'm not 100 sure xD


Re: Fast question - Dripac - 16.12.2011

pawn Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
     if(pickupid == pickupname)
     {
        SetPlayerPos(playerid,0.0,0.0,3.0)
        SetPlayerInterior(playerid, 0)
     }
}



Re: Fast question - davve95 - 16.12.2011

Quote:
Originally Posted by Dripac
Посмотреть сообщение
pawn Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
     if(pickupid == pickupname)
     {
        SetPlayerPos(playerid,0.0,0.0,3.0)
        SetPlayerInterior(playerid, 0)
     }
}
Thank you alot!