if(dialogid == 7799) { new vehicleid = GetOwnedVehicleID(playerid); new typeid = GetVehicleType(vehicleid); if(response) { if(listitem == 0) { new vehicleid2 = GetOwnedVehicleID(playerid); new Float:vida; GetVehicleHealth(vehicleid2, vida); if (GetVehicleModel(GetPlayerVehicleID(playerid) == vehicleid2)) {// new v = GetOwnedVehicleID(playerid); new Float:angulo; VehicleInfo[vehicleid][vPark] = 1; GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPX], VehicleInfo[vehicleid][vPY], VehicleInfo[vehicleid][vPZ]); GetVehicleZAngle(vehicleid, angulo); VehicleInfo[vehicleid][vPA] = angulo; format(string, sizeof string, "|CARRO| Seu veнculo foi estacionado neste local."); SendClientMessage(playerid, COLOR_GRAD5, string); for(new m = 0; m < MAX_MODS; m++) { if (VehicleInfo[vehicleid][vMod][m] > 0) { AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][vMod][m]); } } if (VehicleInfo[v][vPaintjob] > -1) { ChangeVehiclePaintjob(vehicleid,VehicleInfo[vehicleid][vPaintjob]); } } else { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo esta dentro de seu veнculo da concessionaria."); return 1; }// }// |
if(strcmp(cmd, "/respawncarros", true) == 0 || strcmp(cmd, "/rc", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 3) { SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб autorizado a usar este comando !"); return 1; } if(admadministrando[playerid] < 1) { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)"); return 1; } GetPlayerName(playerid, playername, sizeof(playername)); //format(string, sizeof(string), "[BNG-BOT] O Admin %s recolocou todos os veiculos para seus locais de origem.", playername); SendClientMessageToAll(COLOR_WHITE,string); SendClientMessage(playerid,COLOR_GRAD1,"Respwan Dado Bom Jogo!"); new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= CAR_RESPAW; car++) { if(!unwanted[car]) SetVehicleToRespawn(car); } } return 1; } |
NГO Й ISSO CARA...QUANDO VC ESTACIONAR O CARRO O CARRO SO VAI FICAR FIXO DEPOIS QUE VC DER GMX NO SERVER...ANTES DISSE ELE VAI FICAR NO LOCAL ONDE ESCOLHE O CARRO
|
if(dialogid == 7799)
{
new vehicleid = GetOwnedVehicleID(playerid);
new typeid = GetVehicleType(vehicleid);
if(response)
{
if(listitem == 0)
{
new vehicleid2 = GetOwnedVehicleID(playerid);
new Float:vida;
GetVehicleHealth(vehicleid2, vida);
if (GetVehicleModel(GetPlayerVehicleID(playerid) == vehicleid2))
{//
new v = GetOwnedVehicleID(playerid);
new m = GetVehicleModel(vehicleid);
new Float:a[4];
GetVehiclePos(vehicleid, a[0], a[1], a[2]);
GetVehicleZAngle(vehicleid, a[3]);
VehicleInfo[carid][vPX] = a[0];
VehicleInfo[carid][vPY] = a[1];
VehicleInfo[carid][vPZ] = a[2];
VehicleInfo[vehicleid][vPA] = a[3];
DestroyVehicle(carid);
AddStaticVehicleEx(m,VehicleInfo[vehicleid][vPX],VehicleInfo[vehicleid][vPY],VehicleInfo[vehicleid][vPZ]+1.0,VehicleInfo[vehicleid][vPA],VehicleInfo[vehicleid][vPaintjob],VehicleInfo[vehicleid][vPaintjob],60000);
format(string, sizeof string, "|CARRO| Seu veнculo foi estacionado neste local.");
SendClientMessage(playerid, COLOR_GRAD5, string);
VehicleInfo[vehicleid][vPark] = 1;
for(new m = 0; m < MAX_MODS; m++)
{
if (VehicleInfo[vehicleid][vMod][m] > 0)
{
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][vMod][m]);
}
}
if (VehicleInfo[v][vPaintjob] > -1)
{
ChangeVehiclePaintjob(vehicleid,VehicleInfo[vehicleid][vPaintjob]);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo esta dentro de seu veнculo da concessionaria.");
return 0x01;
}//
}//