Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PortaoDP;
- new DentroDP;
- new Pedagio1;
- new Pedagio2;
- new Pedagio3;
- new Pedagio4;
- public OnGameModeInit()
- {
- PortaoDP = CreateObject(980, 1551.61316, -1627.32190, 15.22380, 0.00000, 0.00000, 89.00000);
- DentroDP = CreateObject(19302, 248.00090, 75.85290, 1003.85260, 0.00000, 0.00000, 91.00000);
- Pedagio1 = CreateObject(968, 67.83000, -1529.78003, 4.79000, 0.00000, 90.00000, 90.00000);
- Pedagio2 = CreateObject(968, 67.47000, -1537.43994, 4.79000, 0.00000, 90.00000, -90.00000);
- Pedagio3 = CreateObject(968, -23.4061, -1342.9047, 10.7999, 0.0000, 90.0000, 131.0000);
- Pedagio4 = CreateObject(968, -5.8154, -1364.9047, 10.7999, 0.0000, 90.0000, 128.0000);
- return 1;
- }
- }
- forward Recriar_Portao_DP();
- public Recriar_Portao_DP() { CreateObject(980, 1551.61316, -1627.32190, 15.22380, 0.00000, 0.00000, 89.00000); } // Aqui criamos uma public para recriar o objeto.
- forward Recriar_Portao_DP1();
- public Recriar_Portao_DP1() { CreateObject(19302, 248.00090, 75.85290, 1003.85260, 0.00000, 0.00000, 90.00000); }
- forward Recriar_Portao_PD1();
- public Recriar_Portao_PD1() { CreateObject(968, 67.83000, -1529.78003, 4.79000, 0.00000, 90.00000, 90.00000); }
- forward Recriar_Portao_PD2();
- public Recriar_Portao_PD2() { CreateObject(968, 67.47000, -1537.43994, 4.79000, 0.00000, 90.00000, -90.00000); }
- forward Recriar_Portao_PD3();
- public Recriar_Portao_PD3() { CreateObject(968, -23.4061, -1342.9047, 10.7999, 0.0000, 90.0000, 131.0000); }
- forward Recriar_Portao_PD4();
- public Recriar_Portao_PD4() { CreateObject(968, -5.8154, -1364.9047, 10.7999, 0.0000, 90.0000, 128.0000); }
- }
- CMD:pagarpg1(playerid) {
- if(IsPlayerInRangeOfPoint(playerid, 8.0, 67.83, -1529.78, 4.79)) {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
- GivePlayerMoney(playerid, -100);
- if(IsValidObject(Pedagio1)) { DestroyObject(Pedagio1); SetTimer("Recriar_Portao_PD1", 2000, false); }
- }
- return true;
- }
- CMD:pagarpg2(playerid) {
- if(IsPlayerInRangeOfPoint(playerid, 8.0, 67.47, -1537.44, 4.79)) {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
- GivePlayerMoney(playerid, -100);
- if(IsValidObject(Pedagio2)) { DestroyObject(Pedagio2); SetTimer("Recriar_Portao_PD2", 2000, false); }
- }
- return true;
- }
- CMD:pagarpg3(playerid) {
- if(IsPlayerInRangeOfPoint(playerid, 8.0, -23.4061, -1342.9047, 10.7999)) {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
- GivePlayerMoney(playerid, -100);
- if(IsValidObject(Pedagio3)) { DestroyObject(Pedagio3); SetTimer("Recriar_Portao_PD3", 2000, false); }
- }
- return true;
- }
- CMD:pagarpg4(playerid) {
- if(IsPlayerInRangeOfPoint(playerid, 8.0, -5.8154, -1364.9047, 10.7999)) {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1, "{FFFFFF}| {00FF00}Cidade {FFFF00}Vida {0080FF}Social {FFFFFF}| Voce Nao Tem Dinheiro Suficiente!");
- GivePlayerMoney(playerid, -100);
- if(IsValidObject(Pedagio4)) { DestroyObject(Pedagio4); SetTimer("Recriar_Portao_PD4", 2000, false); }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement