Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void OnPlayerEnterVehicle(User player)
- {
- var rUser = GetUserByID(player.UniqueNetworkIdentifier);
- if (rUser != null)
- {
- if (rUser.PlayerJob.JobName == null) return;
- ReturnPlayerNative(player, 88888, Hash.GET_VEHICLE_PED_IS_USING, new int(),
- delegate (object o)
- {
- Console.WriteLine("Returned Vehicle ID: " + ((int)o).ToString());
- }, player);
- if (rUser.PlayerJob == GameManagement.GetJob("taxi"))
- //if (ReturnPlayerNative.VehicleHash.Taxi = true) { }
- //TODO: in next versions of API, add "vehicle hash check for TAXI"
- {
- SendNotificationToPlayer(player,"Use ~b~\"/taxi begin\"~w~ to start providing taxi services.\nUse ~b~\"/taxi stop\"~w~ to cancel.");
- }
- /*if (!IsPlayerInRangeOfPoint(player, -1034.62f, -2732.11f, 13.756f, 15)) // Radius Last
- {
- //SetPlayerPos(playerid, 1587.5613, -2689.1929, 771.5931);
- }*/
- if (rUser.PlayerJob == GameManagement.GetJob("police"))
- //TODO: in next versions of API, add "vehicle hash check for TAXI"
- {
- SendNotificationToPlayer(player, "Use ~g~\"/cop start\"~w~ to go on duty.\nUse ~b~\"/cop stop\"~w~ to go off duty");
- }
- // Companies
- if (rUser.PlayerJob == GameManagement.GetJob("ecola"))
- {
- SendNotificationToPlayer(player, "Use ~g~\"/routes to view a list of delivery routes");
- }
- if (rUser.PlayerJob == GameManagement.GetJob("postop"))
- {
- SendNotificationToPlayer(player, "Use ~g~\"/routes to view a list of delivery routes");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement