Toll scripts!! Please help!!
#1

Hello everyone,

Does anyone have good toll scripts? Please help me!!
Reply
#2

Why don't you try script one by yourself?
Reply
#3

Use search.
Reply
#4

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.
Reply
#5

I will try it.
Reply
#6

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
Reply
#7

Something like IsPlayerInArea or IsPlayerInRangeOfPoint?
Reply
#8

Something like ******
Reply
#9

Quote:
Originally Posted by FOTIS6
Посмотреть сообщение
Something like IsPlayerInArea or IsPlayerInRangeOfPoint?
I'd use IsPlayerInRangeOfPoint because it's easier.
Reply
#10

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)