Ayuda
#5

Amigo prueba asi:

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
       new vehicleid = GetPlayerVehicleID(playerid);

       if(GetVehicleModel(vehicleid) == 481 )
       {
          if(InfoJugador[playerid][jJob] >= 1)
          {
             if(Biker == 0)
             {
                   SetVehicleParamsEx(vehicleid,1,0,0,0,0,0,0);
                   EnableStuntBonusForPlayer(playerid, 1);
                   Biker = 1;
             }
             
          }
               
       }
       return 1;
    }
Ahora si buscas que el cуdigo se ejecute solamente si el usuario no contiene el job 3 entonces prueba asi:

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
       new vehicleid = GetPlayerVehicleID(playerid);

       if(GetVehicleModel(vehicleid) == 481 )
       {
          if(!InfoJugador[playerid][jJob] == 3)
          {
             if(Biker == 0)
             {
                   SetVehicleParamsEx(vehicleid,1,0,0,0,0,0,0);
                   EnableStuntBonusForPlayer(playerid, 1);
                   Biker = 1;
             }
             
          }
               
       }
       return 1;
    }
Un saludo.
Reply


Messages In This Thread
Ayuda - by ValenRatti - 22.01.2013, 20:34
Respuesta: Ayuda - by [DOG]irinel1996 - 22.01.2013, 21:29
Respuesta: Ayuda - by ValenRatti - 22.01.2013, 21:38
Re: Ayuda - by [DOG]irinel1996 - 22.01.2013, 22:07
Respuesta: Ayuda - by oOFotherOo - 22.01.2013, 23:26

Forum Jump:


Users browsing this thread: 1 Guest(s)