17.11.2009, 21:11
Yo!,
I made a fuction so ppl cannot drive in Sultans and Elegys and Interfus when this doesnt have enought dirft points
look at it:
Its from the GodFather
It also doesnt works in OnPlayerEnterVehicle
what I need to change?
btw: it works before i putted the Cars Spawns from Samp Common include...
I made a fuction so ppl cannot drive in Sultans and Elegys and Interfus when this doesnt have enought dirft points
look at it:
Код:
public Startup(playerid, vehicleid) { if(GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 432) //sultan { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You cannot drive this vehicle!"); } if(GetVehicleModel(vehicleid) == 560) //sultan { if(PlayerInfo[playerid][pLawSkill] != 7000) { //vehicleEntered[playerid][vehicleid] = true; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can't drive in a sultan yet! You need drift level 5!"); } } if(GetVehicleModel(vehicleid) == 562) //sultan { if(PlayerInfo[playerid][pLawSkill] != 4000) { //vehicleEntered[playerid][vehicleid] = true; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can't drive in a Elegy yet! You need drift level 3!"); } } if(GetVehicleModel(vehicleid) == 411) //sultan { if(PlayerInfo[playerid][pLawSkill] != 2500) { //vehicleEntered[playerid][vehicleid] = true; RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can't drive in this car yet! You need drift level 2!"); } } return 1; }
It also doesnt works in OnPlayerEnterVehicle
what I need to change?
btw: it works before i putted the Cars Spawns from Samp Common include...