/back
#2

for example...
Код:
#include <a_samp>
new X[200],Y[200],Z[200]; //Change 200 to max players on your server
new Float:X2,Float:Y2,Float:Z2;
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/teleport", cmdtext, true, 10) == 0)
	{
		GetPlayerPos(playerid,X2,Y2,Z2);
		SetPlayerPos(playerid,...);
		X[playerid]=X2;
		Y[playerid]=Y2;
		Z[playerid]=Z2;
		return 1;
	}
	if (strcmp("/back", cmdtext, true, 10) == 0)
	{
		SetPlayerPos(playerid,X[playerid],Y[playerid],Z[playerid]);
		return 1;
	}
	
return 0;
}
Reply


Messages In This Thread
/back - by argon - 09.07.2009, 13:40
Re: /back - by Kurence - 09.07.2009, 13:54
Re: /back - by argon - 09.07.2009, 15:47
Re: /back - by lavamike - 09.07.2009, 15:49
Re: /back - by Correlli - 09.07.2009, 15:55
Re: /back - by Kurence - 09.07.2009, 17:53
Re: /back - by argon - 09.07.2009, 18:12
Re: /back - by Burridge - 09.07.2009, 18:15
Re: /back - by argon - 09.07.2009, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)