car check near player
#1

im always geting fist message car isnt near

Код:
if(IsPlayerInCheckpointEx(playerid, cpid))
    {
        new Float: P[3];
   GetPlayerPos(playerid,P[0],P[1],P[2]);
   for(new v; v < MAX_VEHICLES; v++)
   {
   if(GetVehicleDistanceFromPoint(v,P[0],P[1],P[2])<= Radius) return SendClientMessage(playerid, -1, "Car isnt near");
   {
        SendClientMessage(playerid, -1, "Car near you. you can do what you wanna ");
 
        DisablePlayerCheckpointEx(playerid, 0);
Reply


Messages In This Thread
car check near player - by Karolukas123 - 02.11.2015, 20:05
Re: car check near player - by prineside - 02.11.2015, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)