SA-MP Forums Archive
Qeshion - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Qeshion (/showthread.php?tid=200544)



Question - Hoss - 18.12.2010

-Thanks-


Re: Qeshion - iFriSki - 18.12.2010

https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
https://sampwiki.blast.hk/wiki/InteriorIDs


pawn Код:
new Pickup_BSmoke;

public OnGameModeInit()
{
    Pickup_BSmoke = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);         // Big smoke
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Pickup_BSmoke)
    {
        SetPlayerInterior(playerid, 2);
        SetPlayerPos(playerid,      2567.52,    -1294.59,   1063.25);
        return 1;
    }
}



Re: Qeshion - Hoss - 18.12.2010

Quote:
Originally Posted by iFriSki
Посмотреть сообщение
I know that i adde interiour id but when i PickUp pickup i am falling from the sky!


Re: Qeshion - iFriSki - 18.12.2010

You need to set their universe ID properly. For Big Smokes Crack House it would be ID 2, to my belief.

https://sampwiki.blast.hk/wiki/SetPlayerInterior