If the player does not have enough scoure Prevent him from ride Hydra , tank or ....
#9

karemmaahmed22 said First Define under Includes and You know ''OnPlayerStateChange'' Thanks to Karemmahmed22 and also BroZeus

Also you can change the score limit if you want by editing like Changing Define

another one

PHP код:
if(newstate == PLAYER_STATE_DRIVER
    { 
     
        new 
pIscore
        new 
vehicleid
        
vehicleid GetPlayerVehicleID(playerid); 
        
pIscore GetPlayerScore(playerid); 
        if (
GetVehicleModel(vehicleid) == 432 && pIscore PLAYER_LEVEL6//  Rhino
        

            
SendClientMessage(playerid,-1,"Your level is not high enough to drive this vehicle, please kill others to gain score!"); 
            
RemovePlayerFromVehicle(playerid); 

Credits:kareemahmed

That was example of changing vehicle but you need to add another level
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)