01.07.2011, 11:46
if you want to lock do this:
But if you don't want to let player enter the vehicle...
PHP код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,alarm,0,bonnet,boot,objective);
PHP код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 2)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 && GetPlayerScore(playerid) < 150)
{
SendClientMessage(playerid, COLOR_RED, "You need to be a Colonel to ride a Hunter! [/Rankstats & /Myrank]");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}