07.09.2016, 20:35
hey guys i have a /find sistem and is working 90% perfect but i have only one small problem , when i use /find name/id i get a checkpoint for 1 sec on that player and 1 on sf same for 1 sec and it's repeating 1 sec here 1 sec there
this code is the problem , can some1 say if is a problem with this code?
this code is the problem , can some1 say if is a problem with this code?
Код HTML:
if(targetfind[i] >= 0 && UseFind[i] == 1) { new target; target = targetfind[i]; if(BizzEntered[target] > -1) { new j; j = BizzEntered[target]; SetPlayerCheckpoint(i,BizzInfo[j][bEntranceX], BizzInfo[j][bEntranceY], BizzInfo[j][bEntranceZ],4); } else if(HouseEntered[target] > -1) { new j; j = HouseEntered[target]; SetPlayerCheckpoint(i,HouseInfo[j][hEntranceX],HouseInfo[j][hEntranceY],HouseInfo[j][hEntranceZ],4); } else { new Float: x1, Float: y1, Float: z1; GetPlayerPos(target,x1,y1,z1); SetPlayerCheckpoint(i,x1,y1,z1,4); } }