09.07.2009, 13:54
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; }