[Ayuda] /lock ( Vehiculo )
#1

Necesito limitar el comando de mi vehiuclo cuando este cerca de йl.

Muchas Gracias!


Код:
if(strcmp(cmd, "/lock", true) == 0 || strcmp(cmd, "/lock", true) == 0) // By Ellis
 {
                new keycar = PlayerInfo[playerid][pPcarkey];
                if(keycar != 999)
                {
                    new locked[256];
                    locked = strtok(cmdtext, idx);
     if(CarInfo[keycar][cLock] == 1)
                    {
                     for(new i = 0; i < MAX_PLAYERS; i++)
      {
       if (IsPlayerConnected(i))
       {
        SetVehicleParamsForPlayer(keycar,i,0,0);
       }
      }
      format(string, sizeof(string), "~w~Coche~n~~g~Desbloqueado");
      GameTextForPlayer(playerid, string, 4000, 3);
      CarInfo[keycar][cLock] = 0;
      OnPropUpdate();
      return 1;
     }
     else if(CarInfo[keycar][cLock] == 0)
     {
         for(new i = 0; i < MAX_PLAYERS; i++)
      {
       if (IsPlayerConnected(i))
       {
        SetVehicleParamsForPlayer(keycar,i,0,1);
       }
      }
      format(string, sizeof(string), "~w~Coche~n~~r~Bloqueado");
      GameTextForPlayer(playerid, string, 4000, 3);
      CarInfo[keycar][cLock] = 1;
      OnPropUpdate();
      return 1;
     }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, " No tienes un vehнculo!");
                    return 1;
                }
         }
Reply


Messages In This Thread
[Ayuda] /lock ( Vehiculo ) - by Sergikoh - 05.08.2011, 16:37
Respuesta: [Ayuda] /lock ( Vehiculo ) - by TiNcH010 - 05.08.2011, 18:07
Respuesta: [Ayuda] /lock ( Vehiculo ) - by Sergikoh - 05.08.2011, 18:49
Respuesta: [Ayuda] /lock ( Vehiculo ) - by TiNcH010 - 05.08.2011, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)