Scores for vehicles
#2

https://sampwiki.blast.hk/wiki/GetPlayerScore

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
GetVehicleModel(vehicleid) == HUNTER_ID//Change this to the hunters vehicle id
    
{
        if(
GetPlayerScore(playerid) != 5//If the players score isn't equal to 5 it'll kil them out 
        
{
            
RemovePlayerFromVehicle(playerid); //Kicking them out
            //Add more messages here if you want
        
}
    }
    return 
1;

Theres several ways of doing it, that's just one simple example
Reply


Messages In This Thread
Scores for vehicles - by HassanShah - 01.08.2016, 11:38
Re: Scores for vehicles - by Flake. - 01.08.2016, 11:46
Re: Scores for vehicles - by Stinged - 01.08.2016, 11:48
Re: Scores for vehicles - by HassanShah - 01.08.2016, 12:04
Re: Scores for vehicles - by FreAkeD - 01.08.2016, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)