Fast question
#1

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
Reply
#2

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)