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



Ammu-nation - XxJoexX - 12.03.2010

Hi can some one make me a command that works like this
/ammu-nation
which then takes you to any ammu-naton int and when you walk though the door it takes you back to were your were when you did /ammu-nation

im a noob so this may be impossibess but good look and thaks
PS: sorry for Very bad English


Re: Ammu-nation - 02manchestera - 12.03.2010

Код:
if (strcmp(cmdtext, "/ammunation", true) == 0)
	{
	SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
 return 1;
 }
untested


Re: Ammu-nation - XxJoexX - 12.03.2010

Ahh V-Good


Re: Ammu-nation - cozza123456 - 12.03.2010

But when you leave the ammunation, it will put you just outside instead, we want it so that it puts you back to where you were... (getplayerpos or something)


Re: Ammu-nation - cozza123456 - 12.03.2010

Sorry for double post but you need to make it set to the right interior, just setting player position, it sends you to the middle of the sky to fall to your death, thanks.


Re: Ammu-nation - ihatetn931 - 12.03.2010

Quote:
Originally Posted by XxCozzaxX
Sorry for double post but you need to make it set to the right interior, just setting player position, it sends you to the middle of the sky to fall to your death, thanks.
Just check samp wiki and ammunation interor then while in game type /interior and it shows the interior then

SetPlayerInterior(playerid, [interiorid]);


Re: Ammu-nation - bilakispa - 12.03.2010

Also, set a boolean variable to check if you typed the command and use it OnPlayerInteriorChange for teleporting back where you typed the command.