SA-MP Forums Archive
Vehicle point to point help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle point to point help. (/showthread.php?tid=116203)



Vehicle point to point help. - osanji - 27.12.2009

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.






Re: Vehicle point to point help. - dice7 - 27.12.2009

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


Re: Vehicle point to point help. - osanji - 27.12.2009

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.



Re: Vehicle point to point help. - osanji - 31.12.2009

Okay, I am at wit's end.