18.07.2012, 03:07
(
Последний раз редактировалось oblexive; 19.07.2012 в 09:57.
)
Hey guys iv been working on the mechanic system a bit and came up with a good idea. I need a bit of an example though coz im not sure where to start.)
What I want is, If the player is a mechanic then it checks if he is in a vehicle, if not then you need to be.
Then checks if they are a passenger and if not says you have to be.
Then checks if there is a driver, again if not there needs to be one to continue.
Then when there is a driver and your in the car as a passenger:
A dialog will show up for the mechanic with a list. level 1, level 2, level 3, level 4, level 5.
Mechanic chooses a level then a list will come up for which ever level you are. Levels only show up if you are atleast that level.
Then when the player chooses to repair or upgrade whatever, it asks the driver of the vehicle.
Thanks so much guys
Also what Iv got so far is:
I think its mainly the getting who is driving the vehicle part thats bothering me. If someone can atleast help with that then that would be amazing!
What I want is, If the player is a mechanic then it checks if he is in a vehicle, if not then you need to be.
Then checks if they are a passenger and if not says you have to be.
Then checks if there is a driver, again if not there needs to be one to continue.
Then when there is a driver and your in the car as a passenger:
A dialog will show up for the mechanic with a list. level 1, level 2, level 3, level 4, level 5.
Mechanic chooses a level then a list will come up for which ever level you are. Levels only show up if you are atleast that level.
Then when the player chooses to repair or upgrade whatever, it asks the driver of the vehicle.
Thanks so much guys

Also what Iv got so far is:
Код:
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pJob] != JOB_MECHANIC && !PlayerInfo[playerid][pVIP]) return SendClientMessage(playerid, COLOR_GREY, "You are not a mechanic."); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be in a vehicle to do that."); if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_GREY, "You must be a passenger to use that command.");