PDA

View Full Version : Command /apark


tristtok
21/09/2013, 10:39 PM
Could you give me the command / apark (admin command to park the vehicles Dealers RPG)'ve searched and not found it, I tried to create more I could not if I can help. Thank you.

Emmet_
21/09/2013, 11:15 PM
Show me the /park command from your vehicle dealership and I'll make the command for you

tristtok
21/09/2013, 11:40 PM
Show me the /park command from your vehicle dealership and I'll make the command for you

this is part of the command / v

if(strcmp(tmp, "park", true) == 0)
{
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Você não tem um Carro VIP.");
return true;
}
if(PlayerInfo[playerid][pCarKey] != vehid && PlayerInfo[playerid][pCarKey2] != vehid)
{
SendClientMessage(playerid, COLOR_GREY, "Esse não é seu Carro VIP.");
return true;
}
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
new Veiculo;
if(vehid == PlayerInfo[playerid][pCarKey]) { carid = PlayerInfo[playerid][pCarKey]; Veiculo = PlayerInfo[playerid][pVeiculo]; }
else if(vehid == PlayerInfo[playerid][pCarKey2]) { carid = PlayerInfo[playerid][pCarKey2]; Veiculo = PlayerInfo[playerid][pVeiculo2]; }
if(IsPlayerInVehicle(playerid,carid) && CarInfo[Veiculo][cOwned] == 1)
{
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
GetVehicleZAngle(carid, a);
if(getcarid == carid)
{
CarInfo[Veiculo][cLocationx] = x;
CarInfo[Veiculo][cLocationy] = y;
CarInfo[Veiculo][cLocationz] = z;
CarInfo[Veiculo][cAngle] = a;
format(string, sizeof(string), "~n~ Veiculo Estacionado Aqui! ~n~");
GameTextForPlayer(playerid, "Veiculo Estacionado!~n~Ele vai nascer aqui!.", 10000, 3);
DestroyVehicle(carid);
new carid2 = CreateVehicle(CarInfo[Veiculo][cModel],CarInfo[Veiculo][cLocationx],CarInfo[Veiculo][cLocationy],CarInfo[Veiculo][cLocationz]+1.0,CarInfo[Veiculo][cAngle],CarInfo[Veiculo][cColorOne],CarInfo[Veiculo][cColorTwo],60000);
Controle(playerid, 1);
SaveCars();
SetVehicleToRespawn(carid2);
return true;
}
return true;
}
return true;
}

tristtok
22/09/2013, 02:21 PM
UP. '

tristtok
22/09/2013, 04:16 PM
UP. '

UP. '

tristtok
22/09/2013, 05:08 PM
UP. '