Vehicle point to point help.
#1

Hi there,

I want to put in my gamemode that when a vehicle enters a point, not a checkpoint, a menu pops up so they do not have to type.
For instance, when a vehicle enters a gas station instead of typing in a command, the menu for the gas fill up pops up. I am trying to cut down on players having to type commands for everything. The reason for this is so if an admin is not on the server, the user will have an easier time understanding the servers functions without having to memorize all of the commands. I am still using commands for the server, but, that is more for admins and rcons. Obviously some text-base commands are inevitable especially for the different chat systems.

Anyway, can I make "something happen" when a "vehicle enters point" without the use of checkpoints? Thank You.



Reply
#2

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

public OnPlayerPickUpPickup(playerid, pickupid)

{
if(IsPlayerInRangeOfPoint(playerid, 12.0,-2527.4775,2324.3149,4.550)
{
if(IsPlayerInAnyVehicle(playerid))

ShowMenuForPlayer(Realtor,playerid);

return 1;
}







/*****Above is Bayside Marina *****/

return 0;
}

It will not bring up my menu for my Realtor Business while inside vehicle.
I have tried many different things and can not figure this out. PS, there is no errors, it compiles just fine.
Reply
#4

Okay, I am at wit's end.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)