SA-MP Forums Archive
Admins Saved Positions - 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: Admins Saved Positions (/showthread.php?tid=88759)



Admins Saved Positions - nuriel8833 - 28.07.2009

I need To Make 200 admin saved positions
so can someone help me to make /s X comman
X = num of teleport between 1-200
and /l X command for players to teleport to the admins saved positions
X = num of teleport between 1-200
Can you help me make those commands


Re: Admins Saved Positions - Serediucr - 28.07.2009

like gamerx? u should save them intro a file using dini


Re: Admins Saved Positions - nuriel8833 - 28.07.2009

Quote:
Originally Posted by Serediucr
like gamerx? u should save them intro a file using dini
yea like GamerX (Matite so cooooooooooooooooooooooooll server!!!!
And To save it in dini file.
like:
Teleport 1: X Y Z
Teleport 2: X Y Z
........

and also a command to remove 1 teleport and a command to remove all teleports

modify:
wait i want to make it save like:

/l 1: X Y Z
/l 2: X Y Z

OK?
please help me


Re: Admins Saved Positions - Chrham_2 - 28.07.2009

It depends on which saving system you have and what
your x,y,z variables is called.




Re: Admins Saved Positions - nuriel8833 - 28.07.2009

Quote:
Originally Posted by Chrham_2
It depends on which saving system you have and what
your x,y,z variables is called.

what dos it mean
it wont save?
I want to save that as dini file


Re: Admins Saved Positions - nuriel8833 - 28.07.2009

bump
2nd page


Re: Admins Saved Positions - nuriel8833 - 29.07.2009

cmon please help me 2nd page!!!!!
Make me the commands and that they will save as i sayd


Re: Admins Saved Positions - pagie1111 - 29.07.2009

Well, you can create this:

first get 200 saved positions.

Код:
	
       if (strcmp("/l", cmdtext, true, 7) == 0) // /l [1-200]
	{
	new ID;
	switch(ID)
	{
	  case 1: SetPlayerPos(playerid,X,Y,Z);
	  case 2: SetPlayerPos(playerid,X,Y,Z);
	  case 3: SetPlayerPos(playerid,X,Y,Z);
         //and so on to case 200: 
	  }
	return 1;
	}
Happy scripting


Re: Admins Saved Positions - Serediucr - 29.07.2009

Quote:
Originally Posted by pagie1111
Well, you can create this:

first get 200 saved positions.

Код:
	
      if (strcmp("/l", cmdtext, true, 7) == 0) // /l [1-200]
	{
	new ID;
	switch(ID)
	{
	  case 1: SetPlayerPos(playerid,X,Y,Z);
	  case 2: SetPlayerPos(playerid,X,Y,Z);
	  case 3: SetPlayerPos(playerid,X,Y,Z);
        //and so on to case 200: 
	  }
	return 1;
	}
Happy scripting
absolute! good idea


Re: Admins Saved Positions - nuriel8833 - 29.07.2009

So I need to do it more 197 times? holy shit
And what about it savein a file?