Toll scripts!! Please 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)
+--- Thread: Toll scripts!! Please help!! (
/showthread.php?tid=335428)
Toll scripts!! Please help!! -
FOTIS6 - 18.04.2012
Hello everyone,
Does anyone have good toll scripts? Please help me!!
Re: Toll scripts!! Please help!! -
Cjgogo - 18.04.2012
Why don't you try script one by yourself?
Re: Toll scripts!! Please help!! -
Mark™ - 18.04.2012
Use search.
Re: Toll scripts!! Please help!! -
Tomer!.$ - 18.04.2012
It's easy.. make a cmd /opentoll and then check if the player is in range of point, if yes move the object if no tell him that he should be at the tolls.
Re: Toll scripts!! Please help!! -
FOTIS6 - 18.04.2012
I will try it.
Re: Toll scripts!! Please help!! -
jaami - 18.04.2012
Quote:
Originally Posted by Tomer!.$
It's easy.. make a cmd /opentoll and then check if the player is in range of point, if yes move the object if no tell him that he should be at the tolls.
|
Yep thats easy.. the easiers way
Re: Toll scripts!! Please help!! -
FOTIS6 - 18.04.2012
Something like IsPlayerInArea or IsPlayerInRangeOfPoint?
Re: Toll scripts!! Please help!! -
Cjgogo - 18.04.2012
Something like ******
Re: Toll scripts!! Please help!! -
Shetch - 18.04.2012
Quote:
Originally Posted by FOTIS6
Something like IsPlayerInArea or IsPlayerInRangeOfPoint?
|
I'd use IsPlayerInRangeOfPoint because it's easier.
Re: Toll scripts!! Please help!! -
FOTIS6 - 18.04.2012
I made that but it doesn't work.
Код:
#include <a_samp>
#include <foreach>
#include <streamer>
#define FILTERSCRIPT
new toll1;
forward Tolls();
forward Tolls_Close();
public OnFilterScriptInit()
{
toll1 = CreateDynamicObject(968,-2681.10009766,1283.00000000,55.50000000,0.00000000,88.00000000,0.00000000);
SetTimer("Tolls", 1500, true);
return 1;
}
public Tolls()
{
foreach(Player, playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -2677.55, 1274.1999511719, 54.400001525879) == 1)
{
MoveDynamicObject(toll1, -2681.09960938,1283.00000000,55.50000000, 2.5);
GivePlayerMoney(playerid, -10);
GameTextForPlayer(playerid, "~y~WELL HELLO THERE GOOD SIR~n~THANK YOU~n~~r~$10", 3000, 3);
SetTimerEx("Tolls_Close", 5000, false, "i", 0);
}
}
}
public Tolls_Close()
{
MoveDynamicObject(toll1, -2681.10009766,1283.00000000,55.50000000, 2.5);
}