SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/12/2009, 10:40 PM   #1
osanji
Little Clucker
 
Join Date: Jan 2009
Posts: 14
Reputation: 0
Default Vehicle point to point help.

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.



osanji is offline  
Old 27/12/2009, 10:41 PM   #2
dice7
High-roller
 
Join Date: Apr 2009
Location: Slovenia
Posts: 2,200
Reputation: 22
Default Re: Vehicle point to point help.

http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint
dice7 is offline  
Old 27/12/2009, 11:31 PM   #3
osanji
Little Clucker
 
Join Date: Jan 2009
Posts: 14
Reputation: 0
Default Re: Vehicle point to point help.

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.
osanji is offline  
Old 31/12/2009, 01:10 PM   #4
osanji
Little Clucker
 
Join Date: Jan 2009
Posts: 14
Reputation: 0
Default Re: Vehicle point to point help.

Okay, I am at wit's end.
osanji is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
from point to point Kasis Help Archive 2 01/06/2010 10:21 AM
[SOLVED] Point in range of point. CaHbKo Help Archive 3 01/02/2010 01:04 PM
+1 point RenisiL Help Archive 6 25/01/2010 01:32 PM
Job Point Jo1Nt Help Archive 2 10/01/2010 04:04 PM
IDK what to do at this point. FreeSoul Help Archive 5 14/05/2009 07:33 AM


All times are GMT. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.