SA-MP Forums Archive
Adding Ammunations, Burger Shots etc. - 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: Adding Ammunations, Burger Shots etc. (/showthread.php?tid=513493)



Adding Ammunations, Burger Shots etc. - LegendGangsta - 16.05.2014

How do i add those kind of shops what are in the title?

(REP If i get any help)


Re: Adding Ammunations, Burger Shots etc. - Denying - 16.05.2014

Quote:
Originally Posted by LegendGangsta
Посмотреть сообщение
How do i add those kind of shops what are in the title?

(REP If i get any help)
I'll explain in words, too lazy to script it.

You check if a player is at a certain spot (e.g. business entrance) and if he's, you teleport him inside the business.
And if he's inside at the exit, you tp him outside, more or less. The rest is up to you.

EDIT: My explanation is really, really, really not detailed. Lol. That's pretty much, in general what you do.


Re : Adding Ammunations, Burger Shots etc. - Ramoboss - 16.05.2014

pawn Код:
new BurgerPickup;

BurgerPickup = CreatePickup(1559, 1, XPOS, YPOS, ZPOS, 0);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == BurgerPickup)
    {
         SetPlayerVirtualWorld(playerid, 10);
         SetPlayerPos(playerid, 363.4129, -74.5786, 1001.5078);
         SetCameraBehindPlayer(playerid);
         return 1;
    }
    return 1;
}
it should work