- 0
Problema licente. Va rog sa ma ajutati.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
NuamNume
Salut, am facut un sistem de licente, totul merge nu am probleme dar cand ma apropii de un avion sau barca, imi zice ca nu am licenta de condus. Dar daca imi setez licenta de condus merge sa urc. La masini este ok.
Cod: public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
if(!isBike(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pDrivingLic] == 0)
{
ClearAnimations(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus.");
}
if(isBoat(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pBoatLic] == 0)
{
ClearAnimations(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie.");
}
if(isPlane(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pFlyLic] == 0)
{
ClearAnimations(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot.");
}
}
return 1;
}
si la statechange
if(newstate == PLAYER_STATE_DRIVER)
{
if(!isBike(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pDrivingLic] == 0)
{
SlapPlayer(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus.");
}
if(isBoat(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pBoatLic] == 0)
{
SlapPlayer(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie.");
}
if(isPlane(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pFlyLic] == 0)
{
SlapPlayer(playerid);
return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot.");
}
}
Am un stock gen cu isplane, etc..
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now