PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate) {
{
new vehicleid = GetPlayerVehicleID(playerid);
if (IsPlayerNPC(playerid)) return true;
PlayerInactivity[playerid] = 0;
if (newstate == PLAYER_STATE_PASSENGER) {
pweapon[playerid] = GetPlayerWeapon(playerid);
}
if (newstate == PLAYER_STATE_DRIVER) {
TextDrawShowForPlayer(playerid, BlindInfo[GetPlayerVehicleID(playerid)][TDS]);
}
if (oldstate == PLAYER_STATE_DRIVER) {
for (new o; o != MAX_VEHICLES; ++o) {
TextDrawHideForPlayer(playerid, BlindInfo[o][TDS]);
}
}
if (oldstate == PLAYER_STATE_DRIVER) {
if (FazendoTeste[playerid] == 1 && FazendoTesteAVIAO[playerid] == 1) {
new Habilitacao = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(Habilitacao);
FazendoTeste[playerid] = 0;
FazendoTesteAVIAO[playerid] = 0;
VelocidadeTeste[playerid] = 0;
SetPlayerPos(playerid, 1416.6458, -1699.2861, 13.5395);
SetPlayerFacingAngle(playerid, 107.5803);
SendClientMessage(playerid, 0xFF0A00FF, "Vocк saiu do veiculo e por causa disso seu teste foi cancelado!");
KillTimer(Verificar[playerid]);
KillTimer(VerificarMoto[playerid]);
KillTimer(VerificarAviao[playerid]);
DisablePlayerCheckpoint(playerid);
}
}
if (newstate == PLAYER_STATE_ONFOOT) {
if (TransportDuty[playerid] > 0) {
if (TransportDuty[playerid] == 1) {
TaxiDrivers -= 1;
} else if (TransportDuty[playerid] == 2) {
BusDrivers -= 1;
}
TransportDuty[playerid] = 0;
format(gstring, sizeof(gstring), "* Estб fora de serviзo, ganhou R$%d.", TransportMoney[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GivePlayerMoney(playerid, TransportMoney[playerid]);
ConsumingMoney[playerid] = 1;
TransportValue[playerid] = 0;
TransportMoney[playerid] = 0;
}
if (TransportCost[playerid] > 0 && TransportDriver[playerid] < 999) {
if (IsPlayerConnected(TransportDriver[playerid])) {
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
format(gstring, sizeof(gstring), "~w~Custo da corrida~n~~r~R$%d", TransportCost[playerid]);
GameTextForPlayer(playerid, gstring, 5000, 1);
format(gstring, sizeof(gstring), "~w~Passageiro saiu do taxi~n~~g~ganhou R$%d", TransportCost[playerid]);
GameTextForPlayer(TransportDriver[playerid], gstring, 5000, 1);
GivePlayerMoney(playerid, -TransportCost[playerid]);
TransportCost[playerid] = 0;
TransportTime[playerid] = 0;
TransportDriver[playerid] = 999;
}
}
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
}
if (newstate == PLAYER_STATE_PASSENGER) // TAXI, BUSSES, BOTS
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
for (new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
if (IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0) {
if (GetPlayerMoney(playerid) < TransportValue[i]) {
format(gstring, sizeof(gstring), "* Vocк precisa de R$%d para entrar.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
RemovePlayerFromVehicleEx(playerid);
} else {
if (TransportDuty[i] == 1) {
format(gstring, sizeof(gstring), "* Pagou R$%d para o taxista.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
format(gstring, sizeof(gstring), "* Passageiro %s entrou no Taxi.", name);
SendClientMessage(i, COLOR_LIGHTBLUE, gstring);
TransportTime[i] = 1;
TransportTime[playerid] = 1;
TransportCost[playerid] = TransportValue[i];
TransportCost[i] = TransportValue[i];
TransportDriver[playerid] = i;
} else if (TransportDuty[i] == 2) {
format(gstring, sizeof(gstring), "* Pagou R$%d para o Motorista De Onibus.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
format(gstring, sizeof(gstring), "* Passageiro %s entrou no Onibus.", name);
SendClientMessage(i, COLOR_LIGHTBLUE, gstring);
}
GivePlayerMoney(playerid, -TransportValue[i]);
TransportMoney[i] += TransportValue[i];
}
}
}
}
if(GetPlayerVehicleID(playerid) == BuzaoPretoBSG)
{
GameTextForPlayer(playerid, "~w~Passagem onibus azul ~r~- 500", 3000, 1);
GivePlayerMoney(playerid, -500);
}
}
if (newstate == 2) {
for (new i = 0; i < sizeof(CarInfo); i++) {
new newcar = GetPlayerVehicleID(playerid);
new Aluguelbox[128];
if (newcar == CarInfo[i][ownedvehicle]) {
if (CarInfo[i][cOwned] == 0) {
Controle(playerid, 0);
CarOffered[playerid] = 1;
//format(string,sizeof(string),"~w~Carro: %s~n~Preco: ~g~%d~n~~w~/veiculo comprar para comprar",CarInfo[i][cDescription],CarInfo[i][cValue]);
format(Aluguelbox, sizeof(Aluguelbox), "Carro: %s Preco: %d\nGostaria de compra-lo ?", CarInfo[i][cDescription], CarInfo[i][cValue]);
Controle(playerid, 0);
ShowPlayerDialog(playerid, 2624, DIALOG_STYLE_MSGBOX, "Deseja comprar este veнculo ?", Aluguelbox, "Sim", "Nгo");
}
if (CarInfo[i][cOwned] == 1) {
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if (strcmp(playername, CarInfo[i][cOwner], true) == 0) {
format(gstring, sizeof(gstring), "Vocк entrou no seu carro ele tem %d de grana no porta luva. Use: /retirargrana para pegar.", CarInfo[i][cGrana]);
SendClientMessage(playerid, COR_GRO, gstring);
TogglePlayerControllable(playerid, 1);
} else {
new playerdinheiro = GetPlayerMoney(playerid);
if (playerdinheiro < 1500) {
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб com essa grana no bolso.");
RemovePlayerFromVehicle(playerid);
return 1;
}
format(gstring, sizeof(gstring), "Vocк pagou %d para andar no veiculo de (%s)", granacarro, CarInfo[i][cOwner]);
SendClientMessage(playerid, 0x33CCFFAA, gstring);
CarInfo[i][cGrana] += granacarro;
GivePlayerMoney(playerid, -granacarro);
}
}
}
}
}
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
if (PlayerInfo[playerid][pJailed] != 0) {
RemovePlayerFromVehicleEx(playerid);
}
}
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
if (IsABike(GetPlayerVehicleID(playerid))) {
switch (GetPlayerSkin(playerid)) {
#define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18977, 2, (%0), (%1), (%2), (%3), (%4), (%5));
case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
}
}
}
else
{
RemovePlayerAttachedObject(playerid, SLOT);
}
}
if (newstate == PLAYER_STATE_DRIVER) { // 38 / 49 / 56 = SS
new newcar = GetPlayerVehicleID(playerid);
new oldcar = gLastCar[playerid];
new HouseCar = PlayerInfo[playerid][pPHousekey] + totalveiculos;
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
new carid = GetVehicleModel(newcar);
if (carid == 0 || carid == 0 || carid == 0) {} else {
if (IsAAztecaCar(newcar)) {
if (!IsAAzteca(playerid)) {
SendClientMessage(playerid, COR_AZTECAS, "Vocк nгo й um Azteca.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAOniCar(newcar)) {
if (PlayerInfo[playerid][pEmprego] != 7) {
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й um Motorista De Onibus.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAMecCar(newcar)) {
if (GetPlayerOrg(playerid) != 24) {
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й um Mecвnico.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAMec2Car(newcar)) {
if (GetPlayerOrg(playerid) != 24) {
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й um Mecвnico.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsADriCar(newcar)) {
if (!IsADri(playerid)) {
SendClientMessage(playerid, COR_DRIFTERS, "Vocк nгo й um Hells Angels.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsABloodzCar(newcar)) {
if (GetPlayerOrg(playerid) != 19) {
SendClientMessage(playerid, 0xF6000000, "Vocк nгo й dos Comando Vermelho.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsACaminhoneiroCar(newcar)) {
if (PlayerInfo[playerid][pEmprego] != 9) {
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й um Caminhoneiro.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAJornalCar(newcar)) {
if (!IsAJornal(playerid)) {
SendClientMessage(playerid, COR_REP, "Vocк nгo й um Repуrter.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAHamasCar(newcar)) {
if (!IsAHamas(playerid)) {
SendClientMessage(playerid, COR_HAMAS, "Vocк nгo й do Hamas.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsASonsofAnarchyCar(newcar)) {
if (!IsASonsofAnarchy(playerid)) {
SendClientMessage(playerid, COR_SONS, "Vocк nгo й dos Sons of Anarchy.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsASegurancaCar(newcar)) {
if (PlayerInfo[playerid][pEmprego] != 5) {
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й Seguranзa.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsATriadCar(newcar)) {
if (!IsATriad(playerid)) {
SendClientMessage(playerid, COR_TRIADS, "Vocк nгo й dos Triads.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsABallasCar(newcar)) {
if (!IsABallas(playerid)) {
SendClientMessage(playerid, COR_BALLAS, "Vocк nгo й dos Ballas.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAVagosCar(newcar)) {
if (!IsAVagos(playerid)) {
SendClientMessage(playerid, COR_VAGOS, "Vocк nгo й dos Vagos.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsATransportadorCar(newcar)) {
if (!IsATransportador(playerid)) {
SendClientMessage(playerid, COR_WHITE, "Vocк nгo й um Transportador Aйreo.");
RemovePlayerFromVehicleEx(playerid);
}
if (!AereaMission[playerid]) {
SendClientMessage(playerid, COR_WHITE, "Este veiculo sу poderб ser usado quando vocк estiver trabalhando, /transportar.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsABombeiroCar(newcar)) {
if (!IsABombeiro(playerid)) {
SendClientMessage(playerid, COR_SAMU, "Vocк nгo й da S.A.M.U");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsATaxiCar(newcar)) {
if (!IsATaxi(playerid)) {
SendClientMessage(playerid, COLOR_TAXISTA, "Vocк nгo й um Taxista.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAGrooveCar(newcar)) {
if (!IsAGroove(playerid)) {
SendClientMessage(playerid, COR_GRO, "Vocк nгo й da Grove Street.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAAlCar(newcar)) {
if (!IsAAl(playerid)) {
SendClientMessage(playerid, COR_AL, "Vocк nгo й da Al'Qaeda.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAFARCCar(newcar)) {
if (!IsAFARC(playerid)) {
SendClientMessage(playerid, COR_FARC, "Vocк nгo й do PCC");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAVagoCar(newcar)) {
if (PlayerInfo[playerid][pEmprego] != 2) {
SendClientMessage(playerid, COR_WHITE, "Vocк nгo й um advogado");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAPoliciaCivilCar(newcar)) {
if (GetPlayerOrg(playerid) != 16) {
SendClientMessage(playerid, COR_PC, "Vocк nгo й da Polнcia Civil.");
RemovePlayerFromVehicleEx(playerid);
}
if (OnDuty[playerid] != 1) {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo Bateu o Cartгo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsABOPEsCar(newcar)) {
if (GetPlayerOrg(playerid) != 2) {
SendClientMessage(playerid, COR_BOPE, "Vocк nгo й do B.O.P.E.");
RemovePlayerFromVehicleEx(playerid);
}
if (OnDuty[playerid] != 1) {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo bateu o cartгo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAAdmins(newcar)) {
if (PlayerInfo[playerid][pAdmin]) {
SendClientMessage(playerid, COR_BOPE, "Vocк nгo й Admin");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAPFCar(newcar)) {
if (GetPlayerOrg(playerid) != 11) {
SendClientMessage(playerid, COR_PF, "Vocк nгo й da Polнcia Federal.");
RemovePlayerFromVehicleEx(playerid);
}
if (OnDuty[playerid] != 1) {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo bateu o cartгo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAExCar(newcar)) {
if (GetPlayerOrg(playerid) != 3) {
SendClientMessage(playerid, COR_EXE, "Vocк nгo й do Exйrcito.");
RemovePlayerFromVehicleEx(playerid);
}
if (OnDuty[playerid] != 1) {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo bateu o cartгo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsACopCar(newcar)) {
if (GetPlayerOrg(playerid) != 1) {
SendClientMessage(playerid, COR_PM, "Vocк nгo й da Polнcia Mнlitar.");
RemovePlayerFromVehicleEx(playerid);
}
if (OnDuty[playerid] != 1) {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo bateu o cartгo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAHitCar(newcar)) {
if (!IsAHit(playerid)) {
SendClientMessage(playerid, COR_HITMAN, "Vocк nгo й um Hitman.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAYaCar(newcar)) {
if (!IsAYa(playerid)) {
SendClientMessage(playerid, COR_YAK, "Vocк nгo й da Mбfia Yakuza.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsACosaNostraCar(newcar)) {
if (!IsACosaNostra(playerid)) {
SendClientMessage(playerid, COR_COSA, "Vocк nгo й da Mбfia Cosa Nostra.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAGOVCar(newcar)) {
if (!IsAGOV(playerid)) {
SendClientMessage(playerid, COR_PRE, "Vocк nгo й do Governo.");
RemovePlayerFromVehicleEx(playerid);
}
} else if (IsAnAmbulanceCar(newcar)) {
if (!IsAAmbu(playerid)) {
SendClientMessage(playerid, COR_SAMU, "Vocк nгo й um Mйdico.");
RemovePlayerFromVehicleEx(playerid);
}
}
}
if (IsHabCar(newcar)) {
if (FazendoTeste[playerid] < 1 && FazendoTesteAVIAO[playerid] < 1) {
SendClientMessage(playerid, COR_GRO, "Vocк nгo estб fazendo teste de habilitaзгo.");
RemovePlayerFromVehicleEx(playerid);
return true;
}
}
if (IsAviao(newcar)) {
if (PlayerInfo[playerid][pFlyLic] == 0) {
if (IsHabCar(newcar)) {
return 1;
}
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem licenзa para voar!");
SendClientMessage(playerid, COLOR_GREY, "Para adquirir todas as suas licenзas digite /GPS");
SendClientMessage(playerid, COLOR_GREY, "Clique em 'Los Santos' depois selecione 'Centro de licenзas'.");
RemovePlayerFromVehicleEx(playerid);
}
}
if (IsAMotinha(newcar)) {
if (PlayerInfo[playerid][pMotoLic] == 0) {
if (IsHabCar(newcar)) {
return 1;
}
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem licenзa para pilotar!");
SendClientMessage(playerid, COLOR_GREY, "Para adquirir todas as suas licenзas digite /GPS");
SendClientMessage(playerid, COLOR_GREY, "Clique em 'Los Santos' depois selecione 'Centro de licenзas'.");
RemovePlayerFromVehicleEx(playerid);
}
} else {
if (PlayerInfo[playerid][pCarLic] == 0) {
if (IsABikeCar(newcar)) {}
if (IsHabCar(newcar)) {}
if (IsAviao(newcar)) {
return 1;
}
if (!IsAMotinha(newcar)) {
return 1;
} else {
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem licenзa para dirigir carro!");
SendClientMessage(playerid, COLOR_GREY, "Para adquirir todas as suas licenзas digite /GPS");
SendClientMessage(playerid, COLOR_GREY, "Clique em 'Los Santos' depois selecione 'Centro de licenзas'.");
RemovePlayerFromVehicleEx(playerid);
}
}
}
if ((newcar >= 322 && newcar <= 367)) {
if (HireCar[playerid] != newcar) {
new Aluguelbox[128];
format(Aluguelbox, sizeof(Aluguelbox), "Voce pode alugar Este Veiculo pelo Preзo:R$%d\nDeseja Aluga-lo ?", SBizzInfo[1][sbEntranceCost]);
Controle(playerid, 0);
ShowPlayerDialog(playerid, DIALOG_ALUGAR, DIALOG_STYLE_MSGBOX, "Aluguel de Veiculos", Aluguelbox, "Sim", "Nгo");
}
}
if ((newcar >= 368 && newcar <= 370)) {
if (HireCar[playerid] != newcar) {
new Aluguelbox[128];
format(Aluguelbox, sizeof(Aluguelbox), "Voce pode alugar Este Helicуptero pelo Preзo:R$%d\nDeseja Aluga-lo ?", SBizzInfo[1][sbEntranceCost]);
Controle(playerid, 0);
ShowPlayerDialog(playerid, DIALOG_ALUGAR, DIALOG_STYLE_MSGBOX, "Aluguel de Veiculos", Aluguelbox, "Sim", "Nгo");
}
} else if (IsABikeCar(newcar)) {
if (PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0) {
SendClientMessage(playerid, COLOR_GREY, "Vocк possui uma org, nгo poderб andar no veiculos de novatos.");
RemovePlayerFromVehicleEx(playerid);
return true;
}
SendClientMessage(playerid, COR_VAGOS, "Seja Bem-Vindo, precisando de alguma ajuda, digite: /relatorio e fale com um administrador.");
SendClientMessage(playerid, COR_VAGOS, "Novato, vocк poderб chegar aos locais desejados utilizando o comando: /gps");
SendClientMessage(playerid, COR_VAGOS, "Para selecionar alguma opзгo no /gps, clique com o mouse ou selecione com as setas do seu teclado.");
SendClientMessage(playerid, COR_VAGOS, "Vб atй o centro de licenзas para adquirir suas licenзas e tenha um уtimo jogo!");
}
if (oldcar != 301) {
if ((HouseCar != oldcar && oldcar != 0) && (HireCar[playerid] != oldcar && newcar != HouseCar)) {
if (gLastDriver[oldcar] == playerid && oldcar != newcar) {
gLastDriver[oldcar] = 300;
VTrancado[oldcar] = 0;
UnLockCar(oldcar);
}
}
}
gLastCar[playerid] = newcar;
gLastDriver[newcar] = playerid;
}
if (newstate == PLAYER_STATE_SPAWNED && logouagora[playerid] == 0) {
if (sincronizando[playerid] == 1) {
return true;
}
new Float: lwx,
Float: lwy,
Float: lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if ((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9, -1868.4, 79.1)) //the highest land point in sa = 526.8
{
if (sincronizando[playerid] == 1) {
return true;
}
SetPlayerSpawn(playerid);
}
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
}
return true;
}