/windows help.
#1

pawn Код:
if(strcmp(cmd, "/wi", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(IsABike(GetPlayerVehicleID(playerid)))
            {
              SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Bikes don't have windows.");
              return 1;
            }
          if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 1)
          {
            if(PlayerInfo[playerid][pSex] == 1)
                {
                    PlayerActionMessage(playerid,15.0,"has just rolled the windows down in his vehicle.");
                }
                else
                {
                    PlayerActionMessage(playerid,15.0,"has just rolled the windows down in her vehicle.");
                }
                CarWindowStatus[GetPlayerVehicleID(playerid)] = 0;
          }
          else if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 0)
          {
            if(PlayerInfo[playerid][pSex] == 1)
                {
                    PlayerActionMessage(playerid,15.0,"has just rolled up the windows in his vehicle.");
                }
                else
                {
                    PlayerActionMessage(playerid,15.0,"has just rolled up the windows in her vehicle.");
                }
                CarWindowStatus[GetPlayerVehicleID(playerid)] = 1;
          }
        }
        else
        {
            SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[ERROR:] Your not in a vehicle!");
        }
        return 1;
    }
I got this command, can someone help me to disable the name tags for the players out of car when the window is rolled up and to enable them when the window is down?
Reply


Messages In This Thread
/windows help. - by Tudor23 - 04.10.2009, 21:56
Re: /windows help. - by Eazy_Efolife - 04.10.2009, 22:09
Re: /windows help. - by Tudor23 - 04.10.2009, 22:46
Re: /windows help. - by Karaula - 05.10.2009, 00:25
Re: /windows help. - by Correlli - 05.10.2009, 05:02
Re: /windows help. - by Zeromanster - 05.10.2009, 10:17
Re: /windows help. - by Tudor23 - 05.10.2009, 13:13
Re: /windows help. - by eXchainZ-FoReVeR - 05.10.2009, 13:54
Re: /windows help. - by Tudor23 - 05.10.2009, 22:21
Re: /windows help. - by Silent314 - 06.10.2009, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)