How to make a toll - 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)
+--- Thread: How to make a toll (
/showthread.php?tid=182517)
How to make a toll -
Georgelopez1 - 11.10.2010
Okay so i know HOW to make the toll. I just dont know how to make it where when you drive up to it it takes 10 bucks then goes back down. Like automatic.
Re: How to make a toll -
Steven82 - 11.10.2010
Make a pickup or something then do
pawn Код:
EX.
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == toll)
{
GivePlayerMoney(playerid,-10);
SendClientMessage(playerid,COLOR_,"[Server] You paid the 10$ toll fee.");
}
return 1;
}
I am not going to code you a gate or anything, because like you said you know what to do, which is a complete total lie and you would just copy paste and you wouldn't learn anything.
Re: How to make a toll -
Miguel - 11.10.2010
You could also use
IsPlayerInArea.
Re: How to make a toll -
willsuckformoney - 11.10.2010
How would that help at all?
Re: How to make a toll -
<Weponz> - 11.10.2010
Quote:
Originally Posted by Steven82
Make a pickup or something then do
pawn Код:
EX.
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == toll) { GivePlayerMoney(playerid,-10); SendClientMessage(playerid,COLOR_,"[Server] You paid the 10$ toll fee."); } return 1; }
I am not going to code you a gate or anything, because like you said you know what to do, which is a complete total lie and you would just copy paste and you wouldn't learn anything.
|
Is A Toll Code That Simple :O
EDIT: i was thinking area too with /command and moving gate xD
Re: How to make a toll -
Vandooz - 11.10.2010
That is the second "easy" way.
Re: How to make a toll -
<Weponz> - 11.10.2010
Quote:
Originally Posted by Vandooz
That is the second "easy" way.
|
So what is most easiest TOLL code besides that one
Re: How to make a toll -
Vandooz - 11.10.2010
Quote:
Originally Posted by <Weponz>
So what is most easiest TOLL code besides that one 
|
That what you'd said before my post, i did forget to put your post-quote in it.
Re: How to make a toll -
JamesC - 11.10.2010
You don't need IsPlayerInArea...
Create function to close
Command > IsPlayerInRangeOfPoint > Move Object > Take money > Timer to call close function.
Re: How to make a toll -
Georgelopez1 - 11.10.2010
I want when you drive up to the toll it opens.
I know about move object and all. But how do i trigger is?