01.08.2016, 11:46
https://sampwiki.blast.hk/wiki/GetPlayerScore
Theres several ways of doing it, that's just one simple example
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
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;
}