12.12.2014, 18:28
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]); } } |
Quote:
Basically, you need to load all the files in advance and store them in an array. You can't search through the files when someone uses the command (technically you can, but it will KILL your performance).
|
and how can i load all the files in advance and store them in an array?
you can send me link for a guide please?