Ammu-nation
#1

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

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

Ahh V-Good
Reply
#4

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)
Reply
#5

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.
Reply
#6

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]);
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)