Block the command if...
#2

pawn Код:
if(strcmp(cmd, "/tc3", true) == 0 || strcmp(cmd, "/tv3", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
     for(new player=0; player<MAX_PLAYERS; player++)
      {
        if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
      }
      new keycar = PlayerInfo[playerid][pPcarkey3];
      if(keycar != 255)
     {
      if(!unwanted[keycar]) SetVehicleToRespawn(keycar);
      else SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle is in use try it later");
     }
   }
   return 1;
  }
Reply


Messages In This Thread
Block the command if... - by ArTisT - 28.04.2010, 18:22
Re: Block the command if... - by MadeMan - 28.04.2010, 18:26
Re: Block the command if... - by ArTisT - 28.04.2010, 18:32
Re: Block the command if... - by ArTisT - 28.04.2010, 19:10

Forum Jump:


Users browsing this thread: 2 Guest(s)