20.09.2016, 18:55
hey i have a command and i want to be in that zone if you want to activate but here i can use it everywhere what is wrong ?
Код HTML:
CMD:joinrace(playerid, params[]) { if(RaceStarted == 1) return SendClientMessage(playerid, RED, "<!> Race already started! Wait first till race ends!"); if(RaceBusy == 0x00) return SendClientMessage(playerid, RED, "<!> There's no race to join!"); if(Joined[playerid] == true) return SendClientMessage(playerid, RED, "<!> You already joined a race!"); if(IsPlayerInAnyVehicle(playerid)) return SetTimerEx("SetupRaceForPlayer", 2500, 0, "e", playerid), RemovePlayerFromVehicle(playerid), Joined[playerid] = true; if(PlayerInfo[playerid][pWanted] > 0) return SendClientMessage(playerid, COLOR_ERROR, "Ai deja un nivel de cautare ridicat, nu poti sa jefuiesti banca!"); if(IsPlayerInRangeOfPoint(playerid, 2.0, 245.5332,1797.5433,609.4073) && IsPlayerInRangeOfPoint(playerid, 2.0, 235.4332,1797.4471,609.4073)) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti in locul potrivit."); SetPlayerCheckpoint(playerid, 913.5962, -1003.4122, 38.0038, 4.0); CP[playerid] = 1; SetupRaceForPlayer(playerid); Joined[playerid] = true; return 1; }