12.12.2014, 17:05
Quote:
Create an enumerator for the teleports containing x1, x2, y1, y2, z1, z2, radius [optional], and whether it's created or not. Then it's simple, just create commands to set a teleport position down, then in the /usetp command
Код:
fpr(new id = 0; id < MAX_TELEPORTS; id++) { IsPlayerInRangeOfPoint(playerid, TPInfo[id][radius], TPInfo[id][x], TPInfo[id][y], TPInfo[id][z]) && TPInfo[id][Created] == true) { SetPlayerPos(playerid, TPInfo[id][x2], TPInfo[id][y2], TPInfo[id][z2]); } } |