CMD:teleport(playerid, params[]){if(!IsPlayerInRangeOfPoint(playerid,tavolsag,X,Y,Z)){ SetPlayerPos(playerid,X,Y,Z);}else{ SendClientMessage(playerid, piros, \"Itt nem teleportálhatsz!\");}return 1;}
new teletiltas[MAX_PLAYERS];public OnPlayerConnect(playerid){teletiltas[playerid] = 0;return 1;}public OnPlayerUpdate(playerid){if(IsPlayerInRangeOfPoint(playerid,2.0,0.0,1.0,0.0)){ teletiltas[playerid] = 1;}return 1;}CMD:teleportalas(playerid, params[]){if(teletiltas[playerid] !=1){SetPlayerPos(playerid,1,1,1);}else{ SendClientMessage(playerid,-1,\"Elvagy tiltva a teleportálástól!\");}return 1;}