29.06.2013, 20:10
O tamanho desta public mataria o GM ? ~>
PS: Ela й chamada a cada segundo.
PS: Ela й chamada a cada segundo.
pawn Код:
forward TimerGlobalBielCOP(playerid);
public TimerGlobalBielCOP(playerid)
{
if(gPlayerLogged[playerid] == 0) { return 1; }
ScoreLevel(playerid); ResetPlayerMoney(playerid); GivePlayerMoney(playerid,DinheiroBielCOP[playerid]); TempoLogado[playerid]++;
new Float:x, Float:y, Float:z, i,Velocidade, Arma;
GetPlayerPos(playerid,x,y,z); i = GetPlayerInterior(playerid); Velocidade = GetPlayerSpeed(playerid,true); Arma = GetPlayerWeapon(playerid);
if(TempoLogado[playerid] >= 1800)
{
TempoLogado[playerid] = 0; PlayerInfo[playerid][pPayDay] = 6;
if(WantedPoints[i] >= 1)
{
SetPlayerWantedLevel(i, WantedPoints[i]);
format(gstring, sizeof(gstring), "Nнvel de procurado: %d", WantedPoints[i]);
SendClientMessage(i, COLOR_YELLOW, gstring);
WantedPoints[i] -= 1;
}
}
if(z >= 2000)
{
if(i == 0 && TempoLogado[playerid] >= 10)
{
new Fala[80];
format(Fala,sizeof(Fala),"Player %s recebeu um KICK por suspeita de HACK de Vфo.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,Fala);
SetTimerEx("KickPlayer",100,0,"i",playerid);
}
}
if(TempoLogado[playerid] >= 10 && Velocidade >= 500)
{
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0 && TempoLogado[playerid] >= 10)
{
new Fala[80];
format(Fala,sizeof(Fala),"Player %s recebeu um KICK por suspeita de HACK de Velocidade.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,Fala);
SetTimerEx("KickPlayer",100,0,"i",playerid);
return 1;
}
}
switch(Arma)
{
case 6,8,9,10,11,12,13,14,15,22,23,26,28,32,33,36,37,38,44,45:
{
if(!IsPlayerInAnyVehicle(playerid) && PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0 && TempoLogado[playerid] >= 10)
{
new Fala[80];
format(Fala,sizeof(Fala),"Player %s recebeu um KICK por de suspeita HACK de Armas.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,Fala);
SetTimerEx("KickPlayer",100,0,"i",playerid);
return 1;
}
}
}
if(admtrampando[playerid] == 1 || helpertrampando[playerid] == 1)
{
format(gstring,sizeof(gstring),"~n~~n~~n~~n~~n~~n~~n~~r~Pontos: %d",PlayerInfo[playerid][pPontos]);
GameTextForPlayer(playerid,gstring,2000,3);
PlayerInfo[playerid][pPontos]++;
ResetPlayerWeapons(playerid);
}
if(PlayerInfo[playerid][pGunLic] == 0 && Arma >= 1 && EmEvento[playerid] == 0 && Arma != 46)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem a licenзa nescessбria para portar armas.");
ResetPlayerWeapons(playerid);
}
if(Spectate[playerid] != 999)
{
if(!IsPlayerInAnyVehicle(Spectate[playerid]))
{
TogglePlayerSpectating(playerid,1);
PlayerSpectatePlayer(playerid,Spectate[playerid],0);
format(gstring,sizeof(gstring),"~n~~n~~n~~n~~n~~n~~n~~g~%s (%d)",PlayerName(Spectate[playerid]),Spectate[playerid]);
GameTextForPlayer(playerid,gstring,2000,3);
}
else
{
TogglePlayerSpectating(playerid,1);
PlayerSpectateVehicle(playerid,GetPlayerVehicleID(Spectate[playerid]),0);
format(gstring,sizeof(gstring),"~n~~n~~n~~n~~n~~n~~n~~g~%s (%d)",PlayerName(Spectate[playerid]),Spectate[playerid]);
GameTextForPlayer(playerid,gstring,2000,3);
}
}
if(EmEvento[playerid] == 1)
{
new xx=0;
new FE[50];
for(new ii=0; ii<MAX_PLAYERS; ii++)
{
if(IsPlayerConnected(ii))
{
if(EmEvento[ii] == 1)
{
xx++;
}
}
}
format(FE,sizeof(FE),"~n~~n~~n~~n~~n~~n~~n~~g~Players no Evento: ~y~%d",xx);
GameTextForPlayer(playerid,FE,2000,3);
}
if(PlayerInfo[playerid][pJailed] >= 1)
{
format(gstring,sizeof(gstring),"~n~~n~~n~~n~~n~~n~~n~~r~Tempo preso: ~w~%d",PlayerInfo[playerid][pJailTime]);
GameTextForPlayer(playerid,gstring,2000,3);
}
if(PlayerInfo[playerid][pVIP] == 1)
{
new Fala[128];
format(Fala,sizeof(Fala),"Vips/%s.ini",PlayerName(playerid));
if(!DOF2_FileExists(Fala))
{
new string[220];
format(string,sizeof(string),"Olб %s, sua conta VIP expirou.\n\nPossнvel causa: Sua conta na pasta nгo existe mais.\n\nCaso queira comprar novamente, acesse o /Site!\n\n{FF0000}Custo do VIP: R$5,00.",PlayerName(playerid));
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"VIP Expirado",string,"Cancelar","");
RemoverVip(playerid);
}
}
if(PlayerInfo[playerid][pVIP] == 2)
{
new Fala[128];
format(Fala,sizeof(Fala),"Socios/%s.ini",PlayerName(playerid));
if(!DOF2_FileExists(Fala))
{
new string[220];
format(string,sizeof(string),"Olб %s, sua conta Sуcia expirou.\n\nPossнvel causa: Sua conta na pasta nгo existe mais.\n\nCaso queira comprar novamente, acesse o /Site!\n\n{FF0000}Custo do Sуcio: R$10,00.",PlayerName(playerid));
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Sуcio Expirado",string,"Cancelar","");
RemoverSocio(playerid);
}
}
if(PlayerInfo[playerid][pVIP] == 1)
{
new Fala[128];
format(Fala,sizeof(Fala),"Vips/%s.ini",PlayerName(playerid));
if(DOF2_FileExists(Fala))
{
if(IsPlayerConnected(playerid))
{
new curdate = getdate(); new olddate = DOF2_GetInt(Fala,"Vencimento");
if(curdate-olddate >= DOF2_GetInt(Fala,"Dias"))
{
new string[220];
format(string,sizeof(string),"Olб %s, sua conta VIP expirou.\n\nPossнvel causa: Vencimento.\n\nCaso queira comprar novamente, acesse o /Site!\n\n{FF0000}Custo do VIP: R$5,00.",PlayerName(playerid));
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"VIP Expirado",string,"Cancelar","");
RemoverVip(playerid);
}
}
}
}
if(PlayerInfo[playerid][pVIP] == 2)
{
new Fala[128];
format(Fala,sizeof(Fala),"Socios/%s.ini",PlayerName(playerid));
if(DOF2_FileExists(Fala))
{
if(IsPlayerConnected(playerid))
{
new curdate = getdate(); new olddate = DOF2_GetInt(Fala,"Vencimento");
if(curdate-olddate >= DOF2_GetInt(Fala,"Dias"))
{
new string[220];
format(string,sizeof(string),"Olб %s, sua conta Sуcia expirou\n\nPossнvel causa: Vencimento.\n\nCaso queira comprar novamente, acesse o /Site!\n\n{FF0000}Custo do Sуcio: R$10,00.",PlayerName(playerid));
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Sуcio Expirado",string,"Cancelar","");
RemoverSocio(playerid);
}
}
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,-1330.00000, -742.00000, 1053.80005))
{
if(RaceCheck[playerid] == 1)
{
SetPlayerRaceCheckpoint(playerid,0,-1517.00000, -662.90002, 1050.50000,-1414.19995, -588.70001, 1057.00000,5.0);
RaceCheck[playerid] = 2;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,-1517.00000, -662.90002, 1050.50000))
{
if(RaceCheck[playerid] == 2)
{
SetPlayerRaceCheckpoint(playerid,0,-1414.19995, -588.70001, 1057.00000,-1399.59998, -637.50000, 1051.80005,5.0);
RaceCheck[playerid] = 3;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,-1414.19995, -588.70001, 1057.00000))
{
if(RaceCheck[playerid] == 3)
{
SetPlayerRaceCheckpoint(playerid,1,-1399.59998, -637.50000, 1051.80005,-1399.59998, -637.50000, 1051.80005,5.0);
RaceCheck[playerid] = 4;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,-1399.59998, -637.50000, 1051.80005))
{
if(RaceCheck[playerid] == 4)
{
GameTextForPlayer(playerid,"~r~Licenca de Motorista~n~Adquirida!",5000,3);
SendClientMessage(playerid,COLOR_GREY,"Vocк adquiriu a licenзa de motorista com sucesso!");
SetPlayerPos(playerid,1411.5593,-1699.5270,13.5395);
SetPlayerInterior(playerid,0);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
DisablePlayerRaceCheckpoint(playerid);
PlayerInfo[playerid][pCarLic] = 1;
RaceCheck[playerid] = 0;
}
}
if(IsPlayerInRangeOfPoint(playerid,10.0,-1968.7455,-565.7026,96.2876))
{
if(RaceCheck[playerid] == 1)
{
SetPlayerRaceCheckpoint(playerid,3,-2006.2206,-266.7755,78.3129,-2046.4530,-135.1511,35.3051,10.0);
RaceCheck[playerid] = 2;
}
}
if(IsPlayerInRangeOfPoint(playerid,10.0,-2006.2206,-266.7755,78.3129))
{
if(RaceCheck[playerid] == 2)
{
SetPlayerRaceCheckpoint(playerid,1,-2046.4530,-135.1511,35.3051,-2046.4530,-135.1511,35.3051,10.0);
RaceCheck[playerid] = 3;
}
}
if(IsPlayerInRangeOfPoint(playerid,10.0,-2046.4530,-135.1511,35.3051))
{
if(RaceCheck[playerid] == 3)
{
GameTextForPlayer(playerid,"~r~Licenca de Piloto~n~Adquirida!",5000,3);
SendClientMessage(playerid,COLOR_GREY,"Vocк adquiriu a licenзa de piloto com sucesso!");
SetPlayerPos(playerid,1411.5593,-1699.5270,13.5395);
SetPlayerInterior(playerid,0);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
DisablePlayerRaceCheckpoint(playerid);
PlayerInfo[playerid][pFlyLic] = 1;
RaceCheck[playerid] = 0;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,724.2321,-1728.2461,0.1579))
{
if(RaceCheck[playerid] == 1)
{
SetPlayerRaceCheckpoint(playerid,0,728.5860,-1946.4315,0.5100,871.0715,-2010.7422,0.5180,5.0);
RaceCheck[playerid] = 2;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,728.5860,-1946.4315,0.5100))
{
if(RaceCheck[playerid] == 2)
{
SetPlayerRaceCheckpoint(playerid,0,871.0715,-2010.7422,0.5180,972.5358,-2285.0637,0.4628,5.0);
RaceCheck[playerid] = 3;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,871.0715,-2010.7422,0.5180))
{
if(RaceCheck[playerid] == 3)
{
SetPlayerRaceCheckpoint(playerid,0,972.5358,-2285.0637,0.4628,1239.7778,-2560.2798,0.6710,5.0);
RaceCheck[playerid] = 4;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,972.5358,-2285.0637,0.4628))
{
if(RaceCheck[playerid] == 4)
{
SetPlayerRaceCheckpoint(playerid,0,1239.7778,-2560.2798,0.6710,1622.0658,-2742.9551,6.5631,5.0);
RaceCheck[playerid] = 5;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,1239.7778,-2560.2798,0.6710))
{
if(RaceCheck[playerid] == 5)
{
SetPlayerRaceCheckpoint(playerid,0,1622.0658,-2742.9551,6.5631,1944.5635,-2727.6414,10.1484,5.0);
RaceCheck[playerid] = 6;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,1622.0658,-2742.9551,6.5631))
{
if(RaceCheck[playerid] == 6)
{
SetPlayerRaceCheckpoint(playerid,0,1944.5635,-2727.6414,10.1484,2121.4492,-2775.5706,0.1515,5.0);
RaceCheck[playerid] = 7;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,1944.5635,-2727.6414,10.1484))
{
if(RaceCheck[playerid] == 7)
{
SetPlayerRaceCheckpoint(playerid,0,2121.4492,-2775.5706,0.1515,2318.1182,-2706.7490,-0.0102,5.0);
RaceCheck[playerid] = 8;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,2121.4492,-2775.5706,0.1515))
{
if(RaceCheck[playerid] == 8)
{
SetPlayerRaceCheckpoint(playerid,0,2318.1182,-2706.7490,-0.0102,2363.1880,-2435.9683,0.6164,5.0);
RaceCheck[playerid] = 9;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,2318.1182,-2706.7490,-0.0102))
{
if(RaceCheck[playerid] == 9)
{
SetPlayerRaceCheckpoint(playerid,1,2363.1880,-2435.9683,0.6164,2363.1880,-2435.9683,0.6164,5.0);
RaceCheck[playerid] = 10;
}
}
if(IsPlayerInRangeOfPoint(playerid,5.0,2363.1880,-2435.9683,0.6164))
{
if(RaceCheck[playerid] == 10)
{
GameTextForPlayer(playerid,"~r~Licenca de Marujo~n~Adquirida!",5000,3);
SendClientMessage(playerid,COLOR_GREY,"Vocк adquiriu a licenзa de marujo com sucesso!");
SetPlayerPos(playerid,1411.5593,-1699.5270,13.5395);
SetPlayerInterior(playerid,0);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
DisablePlayerRaceCheckpoint(playerid);
PlayerInfo[playerid][pBoatLic] = 1;
RaceCheck[playerid] = 0;
}
}
new tmpcar = GetPlayerVehicleID(playerid);
if(WantedPoints[playerid] >= 1 && GetPlayerWantedLevel(playerid) >= 1)
{
SetPlayerChatBubble(playerid,"PROCURADO",0xFF0000AA,50.0,10000);
}
if(IsAPlane(tmpcar))
{
GivePlayerWeapon(playerid, 46, 1);
}
if(IsPlayerInRangeOfPoint(playerid,2.0, 1544.0869,-1353.1323,329.4746))
{
GivePlayerWeapon(playerid, 46, 1);
}
if(IsPlayerInRangeOfPoint(playerid,1.0,246.3118,72.9691,1003.6406))
{
MoveObject( PDDOORa, 247.005905 , 72.448440 , 1006.912902,3);
SetTimer("GaragemDpClosed", 5000, 0);
}
if(IsPlayerInRangeOfPoint(playerid,1.0,367.3167,162.2013,1025.7891))
{
MoveObject( PortaoPre, 369.15893554688, 162.35037231445, 1030.9030273438,3);
SetTimer("PortaoPre2", 5000, 0);
}
if(IsPlayerInRangeOfPoint(playerid,1.0,2252.20,-1213.60,1049.0))
{
if(HouseInfo[HouseEntered[playerid]][hHel] == 1)
{
SetPlayerHealth(playerid,100.0);
GameTextForPlayer(playerid,"~r~Voce Foi curado!",2000,3);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
}
}
if(IsPlayerInRangeOfPoint(playerid,1.0,2248.50,-1213.60,1049.0))
{
if(HouseInfo[HouseEntered[playerid]][hArm] == 1)
{
SetPlayerArmour(playerid,100.0);
GameTextForPlayer(playerid,"~r~Voce recebeu o~n~seu colete!",2000,3);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
}
}
if(IsPlayerInRangeOfPoint(playerid,2.0,1533.0000, -1481.0000, 9.4000) || IsPlayerInRangeOfPoint(playerid,2.0,2335.3000, -1050.9000, 52.3000))
{
if(OrderReady[playerid] > 0)
{
switch (OrderReady[playerid])
{
case 1:
{
EquiparAssassinos(playerid,1);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 1000$."); GivePlayerMoneyEx(playerid,-1000);
}
case 2:
{
EquiparAssassinos(playerid,2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 2000$."); GivePlayerMoneyEx(playerid,-2000);
}
case 3:
{
EquiparAssassinos(playerid,3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 3000$."); GivePlayerMoneyEx(playerid,-3000);
}
case 4:
{
EquiparAssassinos(playerid,4);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 4000$."); GivePlayerMoneyEx(playerid,-4000);
}
case 5:
{
EquiparAssassinos(playerid,5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 5000$."); GivePlayerMoneyEx(playerid,-5000);
}
case 6:
{
EquiparAssassinos(playerid,6);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк recebeu o seu pedido por 6000$."); GivePlayerMoneyEx(playerid,-6000);
}
}
}
OrderReady[playerid] = 0;
}
if(IsPlayerInRangeOfPoint(playerid,3.0,2808.0322,-1176.3846,25.3794) || IsPlayerInRangeOfPoint(playerid,3.0,2807.4321,-1174.6454,32.6688))
{
OnPlayerCommandText(playerid,"/etatuados");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,-54.6216,-237.0123,31.5678) || IsPlayerInRangeOfPoint(playerid,3.0,-50.6012,-233.2422,6.7646))
{
OnPlayerCommandText(playerid,"/epc");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,346.8519,-1494.9565,36.0391) || IsPlayerInRangeOfPoint(playerid,3.0,345.1602,-1482.8597,76.5391))
{
OnPlayerCommandText(playerid,"/ebope");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,965.7349,-1465.6044,21.3783) || IsPlayerInRangeOfPoint(playerid,3.0,964.0209,-1465.8312,13.4589))
{
OnPlayerCommandText(playerid,"/etaxi");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,2139.7847,-1176.8256,23.9922) || IsPlayerInRangeOfPoint(playerid,3.0,2138.6680,-1168.9967,28.1484))
{
OnPlayerCommandText(playerid,"/ecarros");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,1173.4185,-1361.2090,13.9694) || IsPlayerInRangeOfPoint(playerid,3.0,1169.0085,-1329.3441,31.4640))
{
OnPlayerCommandText(playerid,"/esamu");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,2522.9346,-1679.4137,15.4970) || IsPlayerInRangeOfPoint(playerid,3.0,2524.4297,-1681.8153,19.9302))
{
OnPlayerCommandText(playerid,"/egrove");
}
if(IsAtGasStation(playerid))
{
GameTextForPlayer(playerid, "~b~/abastecer", 5000, 3);
}
if(PlayerInfo[playerid][pJailed] > 0)
{
if(PlayerInfo[playerid][pJailTime] > 0)
{
PlayerInfo[playerid][pJailTime]--;
}
if(PlayerInfo[playerid][pJailTime] <= 0)
{
PlayerInfo[playerid][pJailTime] = 0;
PlayerInfo[playerid][pJailed] = 0;
SetPlayerPos(playerid,1541.1633,-1674.6908,13.5520);
SetPlayerInterior(playerid,0);
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
GameTextForPlayer(playerid, "~g~Livre~n~~w~Nao cometa mais crimes", 5000, 3);
SendClientMessage(playerid,COLOR_GREY,"Vocк saiu da prisгo, portanto seja RPG! Use /servico taxi!");
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
ClearCrime(playerid);
}
}
if(TaxiCallTime[playerid] > 0)
{
if(TaxiAccepted[playerid] < 999)
{
if(IsPlayerConnected(TaxiAccepted[playerid]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(TaxiAccepted[playerid], X, Y, Z);
SetPlayerCheckpoint(playerid, X, Y, Z, 5);
}
}
}
if(BusCallTime[playerid] > 0)
{
if(BusAccepted[playerid] < 999)
{
if(IsPlayerConnected(BusAccepted[playerid]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(BusAccepted[playerid], X, Y, Z);
SetPlayerCheckpoint(playerid, X, Y, Z, 5);
}
}
}
if(MedicCallTime[playerid] > 0)
{
if(MedicAccepted[playerid] < 999)
{
if(IsPlayerConnected(MedicAccepted[playerid]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MedicAccepted[playerid], X, Y, Z);
SetPlayerCheckpoint(playerid, X, Y, Z, 5);
}
}
}
if(CopsrondaCallTime[playerid] > 0)
{
if(CopsrondaAccepted[playerid] < 999)
{
if(IsPlayerConnected(CopsrondaAccepted[playerid]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(CopsrondaAccepted[playerid], X, Y, Z);
SetPlayerCheckpoint(playerid, X, Y, Z, 5);
}
}
}
if(MechanicCallTime[playerid] > 0)
{
if(MechanicAccepted[playerid] < 999)
{
if(IsPlayerConnected(MechanicAccepted[playerid]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MechanicAccepted[playerid], X, Y, Z);
SetPlayerCheckpoint(playerid, X, Y, Z, 5);
}
}
}
if(PlayerCuffed[playerid] == 1)
{
if(PlayerCuffedTime[playerid] <= 0)
{
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerCuffedTime[playerid] = 0;
}
else
{
PlayerCuffedTime[playerid] -= 1;
}
}
if(CellTime[playerid] > 0)
{
if(CellTime[playerid] == cchargetime)
{
CellTime[playerid] = 1;
if(Mobile[Mobile[playerid]] == i)
{
CallCost[playerid] = CallCost[playerid]+callcost;
}
}
CellTime[playerid] = CellTime[playerid] +1;
if(Mobile[Mobile[playerid]] == 999 && CellTime[playerid] == 5)
{
if(IsPlayerConnected(Mobile[playerid]))
{
new called[MAX_PLAYER_NAME];
GetPlayerName(Mobile[playerid], called, sizeof(called));
format(gstring, sizeof(gstring), "* %s chamando.", called);
ProxDetector(30.0, Mobile[playerid], gstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
if(TransportTime[playerid] > 0)
{
if(TransportTime[playerid] >= 16)
{
TransportTime[playerid] = 1;
if(TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportCost[playerid] += TransportValue[TransportDriver[playerid]];
TransportCost[TransportDriver[playerid]] = TransportCost[playerid];
}
}
}
TransportTime[playerid] += 1;
format(gstring, sizeof(gstring), "~r~%d ~w~: ~g~%d$",TransportTime[playerid],TransportCost[playerid]);
GameTextForPlayer(playerid, gstring, 15000, 3);
}
if(GetPlayerMoneyEx(i) < 0)
{
if(MoneyMessage[i] == 0)
{
format(gstring, sizeof(gstring), "Vocк estб devendo %d$.", GetPlayerMoneyEx(i));
SendClientMessage(i, COLOR_LIGHTRED, gstring);
MoneyMessage[i] = 1;
}
}
else
{
MoneyMessage[i] = 0;
}
FimRoubo(playerid);
return 1;
}
forward FimRoubo(playerid);
public FimRoubo(playerid)
{
if(TempoRoubo[playerid] >= 1)
{
TempoRoubo[playerid]--;
new FalaRoubo[35];
format(FalaRoubo,sizeof(FalaRoubo),"~r~Segundos Restantes: ~w~%d",TempoRoubo[playerid]);
GameTextForPlayer(playerid,FalaRoubo,2000,3);
if(TempoRoubo[playerid] == 0)
{
GameTextForPlayer(playerid,"~g~Fuja depressa!",5000,3);
}
if(TempoRoubo[playerid] == 0 && ProvocoBanco[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,2306.5127,-6.1166,26.7422))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar o Banco! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Banco.");
ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; temporoubobanco = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new Grana = 20000 + random(200000);
if(IsPlayerInRangeOfPoint(i,8.0,2306.5127,-6.1166,26.7422))
{
if(ProvocoBanco[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso o Banco! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; roubobanco = 0; ProvocoBanco[playerid] = 0;
}
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ do Banco!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoLot[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,820.6042,8.3990,1004.1962))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Lotйrica! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Lotйrica.");
ProvocoLot[playerid] = 0; roubando[playerid] = 0; roubolot = 0; temporoubolot = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new Grana = 10000 + random(100000);
if(IsPlayerInRangeOfPoint(i,8.0,820.6042,8.3990,1004.1962))
{
if(ProvocoLot[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Lotйrica! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; roubolot = 0; ProvocoLot[playerid] = 0;
}
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Lotйrica!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoLoja1[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,2169.1516,1589.9265,999.9713))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Loja de Armas 1! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Loja de Armas 1.");
ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; temporouboloja1 = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,2169.1516,1589.9265,999.9713))
{
if(ProvocoLoja1[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Loja de Armas 1! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; rouboloja1 = 0; ProvocoLoja1[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Loja de Armas 1!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
GivePlayerWeapon(i,4,1); GivePlayerWeapon(i,24,700); GivePlayerWeapon(i,25,300); GivePlayerWeapon(i,29,500); GivePlayerWeapon(i,31,500); GivePlayerWeapon(i,34,10);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoLoja2[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,451.3090,-79.8603,999.5547))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Loja de Armas 2! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Loja de Armas 2.");
ProvocoLoja2[playerid] = 0; roubando[playerid] = 0; rouboloja2 = 0; temporouboloja2 = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,451.3090,-79.8603,999.5547))
{
if(ProvocoLoja2[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Loja de Armas 2! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; rouboloja2 = 0; ProvocoLoja2[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Loja de Armas 2!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
GivePlayerWeapon(i,4,1); GivePlayerWeapon(i,24,700); GivePlayerWeapon(i,25,300); GivePlayerWeapon(i,29,500); GivePlayerWeapon(i,31,500); GivePlayerWeapon(i,34,10);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoDanceteria[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,476.66, -11.10, 1003.16))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Danceteria! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Danceteria.");
ProvocoDanceteria[playerid] = 0; roubando[playerid] = 0; roubodanceteria = 0; temporoubodanceteria = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,476.66, -11.10, 1003.16))
{
if(ProvocoDanceteria[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Danceteria! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; roubodanceteria = 0; ProvocoDanceteria[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Danceteria!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoPuteiro[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,1222.04, 4.46, 1000.40))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar o Puteiro! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Puteiro.");
ProvocoPuteiro[playerid] = 0; roubando[playerid] = 0; rouboputeiro = 0; temporouboputeiro = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,1222.04, 4.46, 1000.40))
{
if(ProvocoPuteiro[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso o Puteiro! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; rouboputeiro = 0; ProvocoPuteiro[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ do Puteiro!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoPizzaria[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,370.7227, -117.2475, 1001.0022))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Pizzaria! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Pizzaria.");
ProvocoPizzaria[playerid] = 0; roubando[playerid] = 0; roubopizzaria = 0; temporoubopizzaria = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,370.7227, -117.2475, 1001.0022))
{
if(ProvocoPizzaria[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Pizzaria! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; roubopizzaria = 0; ProvocoPizzaria[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Pizzaria!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoPredio[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,1541.1274, -1365.1622, 325.7541))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar o Prйdio! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Prйdio.");
ProvocoPredio[playerid] = 0; roubando[playerid] = 0; roubopredio = 0; temporoubopredio = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,1541.1274, -1365.1622, 325.7541))
{
if(ProvocoPredio[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso o Prйdio! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; roubopredio = 0; ProvocoPredio[playerid] = 0;
}
new Grana = 20000 + random(200000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ do Prйdio!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoPlaca[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,1415.6420, -807.3324, 84.5000))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar a Placa Vinewood! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Placa Vinewood.");
ProvocoPlaca[playerid] = 0; roubando[playerid] = 0; rouboplaca = 0; temporouboplaca = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,1415.6420, -807.3324, 84.5000))
{
if(ProvocoPlaca[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso a Placa Vinewood! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; rouboplaca = 0; ProvocoPlaca[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ da Placa Vinewood!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
if(TempoRoubo[playerid] == 0 && ProvocoParque[playerid] == 1)
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,1985.4519, -1236.4148, 19.6000))
{
format(gstring, sizeof(gstring), "%s e os %s nгo obtiveram sucesso em roubar o Parque! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Parque!");
ProvocoParque[playerid] = 0; roubando[playerid] = 0; rouboparque = 0; temporouboparque = 0;
return 1;
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,8.0,1985.4519, -1236.4148, 19.6000))
{
if(ProvocoParque[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s roubaram com sucesso o Parque! ID: %d", PlayerName(playerid), NomeORG(playerid), playerid); PararRoubo(playerid);
SendClientMessageToAll(ColorORG(playerid), gstring);
roubando[playerid] = 0; rouboparque = 0; ProvocoParque[playerid] = 0;
}
new Grana = 10000 + random(100000);
if(!IsACop(i))
{
SetPlayerCriminal(i,999, "Roubo"); KillTimer(TimerRoubo[playerid]); PararRoubo(playerid);
GivePlayerMoneyEx(i, Grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram %d$ do Parque!",NomeORG(playerid), Grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
}
}
}
return 1;
}