SA-MP Forums Archive
Pickups - 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: Pickups (/showthread.php?tid=96038)



Pickups - XxJoexX - 06.09.2009

how do you make a pickup teleporte you to a interior ? im a noob so a premade skriped would be nice
thankz
XxJoexX


Re: Pickups - Eazy_Efolife - 06.09.2009

Quote:
Originally Posted by XxJoexX
how do you make a pickup teleporte you to a interior ? im a noob so a premade skriped would be nice
thankz
XxJoexX
On Top of Script
Код:
new BurgerShot;
Under On Gamemodeint
Код:
BurgerShot = CreatePickup(1242, 2, x , y , z , -1);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == BurgerShot)
  {
    SetPlayerPos(playerid,375.962463,-65.816848,1001.507812); // Burger Shot
    SetPlayerInterior(playerid, 10); // Burger Shots Interior
  }
}
Change it to whatever you like:
__________________________________________________ _______________________________________
Source:

https://sampwiki.blast.hk/wiki/Category:Scripting_Functions
http://weedarr.wikidot.com/interior