help me with allowing vehicles with score
#6

Example: if player score is less than 425, he wont be able to drive a Hunter(425).
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
     if(newstate == PLAYER_STATE_DRIVER)
     {
          if(!CanDriveVehicle(playerid))
          {
               RemovePlayerFromVehicle(playerid);
          }
     }
     return 1;
}

CanDriveVehicle(playerid) // If player score is higher than #vehicleid, he may drive the car, else - wont
    return (GetPlayerScore(playerid) > GetPlayerVehicleID(playerid));
Reply


Messages In This Thread
help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 14:09
Re: help me with allowing vehicles with score - by BizzyD - 07.12.2013, 14:15
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 15:07
Re: help me with allowing vehicles with score - by Wizzy951 - 07.12.2013, 15:16
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 15:46
Re: help me with allowing vehicles with score - by Loot - 07.12.2013, 16:01
Re: help me with allowing vehicles with score - by Konstantinos - 07.12.2013, 16:02
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)