Disable Vehicle
#1

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:
Код:
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;
}
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...
Reply
#2

Keep your GODDAMN Godfather topics in the GODDAMN Godfather topic
Reply
#3

Try putting this at the top of it

vehicleid = GetPlayerVehicleID(playerid);
Reply
#4

Use a proper subject for your topic
Reply
#5

Quote:
Originally Posted by MaVe - leeturl.de
Keep your GODDAMN Godfather topics in the GODDAMN Godfather topic
Dude its a GodFather Script but I dont ask about fuctions from the GodFather!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)