Eu gostei.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#pragma tabsize 0
forward fecharlvls();
forward fecharlslv();
new CancelaLVLS;
new CancelaLSLV;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Sistema de Pedбgios By: Tugamars ");
print("--------------------------------------\n");
//Pedagio LV LS
//Laterais
CreateObject(979, 1812.13989, 805.36542, 10.42910, 0.00000, 0.00000, 178.75070);
CreateObject(978, 1781.99170, 804.51849, 10.36460, 0.00000, 0.00000, 179.42149);
CreateObject(978, 1811.90137, 819.88654, 9.98615, 0.00000, 0.00000, 0.00000);
CreateObject(979, 1782.73938, 819.75769, 9.99752, 0.00000, 0.00000, 0.00000);
//Lampadas
CreateObject(3877, 1798.24463, 806.10339, 10.40543, 0.00000, 0.00000, 0.00000);
CreateObject(3877, 1808.45886, 806.91925, 10.40543, 0.00000, 0.00000, 0.00000);
CreateObject(3877, 1796.03662, 820.09576, 10.10944, 0.00000, 0.00000, 0.00000);
CreateObject(3877, 1786.30347, 818.96729, 10.10944, 0.00000, 0.00000, 0.00000);
//Cancela
CancelaLVLS = CreateObject(968, 1788.48254, 810.79248, 10.79725, 0.00000, 90.00000, 357.00000);
CancelaLSLV = CreateObject(968, 1799.02673, 814.75079, 10.79720, 0.00000, 90.00000, 357.00000);
//Resto
CreateObject(8556, 1797.39087, 812.63733, 13.98732, 0.00000, 0.00000, 0.00000);
CreateObject(8168, 1786.40283, 812.52698, 11.58143, 0.00000, 0.00000, 104.01295);
CreateObject(8168, 1808.45154, 812.57507, 11.58143, 0.00000, 0.00000, 286.69287);
//Fim Pedagio LV-LS
return 1;
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Sistema de Pedбgios By: Tugamars ");
print("--------------------------------------\n");
return 1;
}
CMD:pedagio(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1802.4081, 812.8696, 10.6952))
{
if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, 0xF20006FF, "Vocк nгo tem dinheiro suficiente");
}
if(GetPlayerMoney(playerid) >= 50)
{
GivePlayerMoney(playerid, -50);
SetObjectRot(CancelaLSLV, 0.00000, 18.00000, 357.00000);
SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Las Venturas .Foi debitado 50R$ na sua conta .");
SetTimer("fecharlslv", 5000, false);
}
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1792.0217, 816.1849, 10.8929))
{
if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, 0xF20006FF, "Vocк nгo tem dinheiro suficiente");
}
if(GetPlayerMoney(playerid) >= 50)
{
GivePlayerMoney(playerid, -50);
SetObjectRot(CancelaLVLS, 0.00000, 18.00000, 357.00000);
SendClientMessage(playerid, 0xF47A00FF, "Bem vindo a Los Santos .Foi debitado 50R$ na sua conta .");
SetTimer("fecharlvls", 5000, false);
}
}
return 1;
}
public fecharlvls()
{
SetObjectRot(CancelaLVLS, 0.00000, 90.00000, 357.00000);
}
public fecharlslv()
{
SetObjectRot(CancelaLSLV, 0.00000, 90.00000, 357.00000);
}