Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #pragma tabsize 0
- forward fecharlvls();
- forward fecharlslv();
- new CancelaLVLS;
- new CancelaLSLV;
- public OnFilterScriptInit()
- {
- CancelaLVLS = CreateDynamicObject(968, 1788.48254, 810.79248, 10.79725, 0.00000, 90.00000, 357.00000);
- CancelaLSLV = CreateDynamicObject(968, 1799.02673, 814.75079, 10.79720, 0.00000, 90.00000, 357.00000);
- return 1;
- }
- CMD:pd(playerid) //ir ao local
- {
- GivePlayerMoney(playerid, 100000);
- SetPlayerPos(playerid, 1788.48254, 810.79248, 13.79725);
- CreateVehicle(451, 1802.4081, 812.8696, 10.6952, 90.000, 3, 3, 5000, 0);
- return 1;
- }
- CMD:pedagio(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1802.4081, 812.8696, 10.6952))
- {
- if(GetPlayerMoney(playerid) >= 50)
- {
- GivePlayerMoney(playerid, -50);
- SetDynamicObjectRot(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)
- {
- GivePlayerMoney(playerid, -50);
- SetDynamicObjectRot(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()
- {
- SetDynamicObjectRot(CancelaLVLS, 0.00000, 90.00000, 357.00000);
- }
- public fecharlslv()
- {
- SetDynamicObjectRot(CancelaLSLV, 0.00000, 90.00000, 357.00000);
- }
Advertisement
Add Comment
Please, Sign In to add comment