03.09.2009, 17:47
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 496)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"You are not allowed to drive this type of vehicle!");
TogglePlayerControllable(playerid,0);
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
return 1;
}
}
}
This is not working, anyone can tell me what's wrong with this? i want it only to work for blista combat...
{
if(ispassenger == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 496)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"You are not allowed to drive this type of vehicle!");
TogglePlayerControllable(playerid,0);
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
return 1;
}
}
}
This is not working, anyone can tell me what's wrong with this? i want it only to work for blista combat...