18.04.2012, 13:53
Hello everyone,
Does anyone have good toll scripts? Please help me!!
Does anyone have good toll scripts? Please help me!!
#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); }