CMD:excluirveiculo(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xDEEE20FF, "Apenas Para Administrador Logado na RCON!");
format(Celulas, sizeof(Celulas), JFSCON, PlayerName(playerid));
if(!DOF2::FileExists(Celulas)) return SendClientMessage(playerid, -1, "Esse Úsuario não tem veiculo!");
format(Celulas, sizeof(Celulas), "Arquivo Veiculo_%s.ini Excluido com Sucesso dos ScriptFiles !", PlayerName(playerid));
SendClientMessage(playerid, -1, Celulas);
DOF2::RemoveFile(Celulas);
DOF2::SaveFile();
if(IsPlayerConnected(strlen(PlayerName(playerid))))
{
JFSID[strlen(params)] = 0;
DestroyVehicle(JFSID[strlen(PlayerName(playerid))]);
}
return true;
}
CMD:veiculomenu(playerid, params[])
{
format(Celulas, sizeof(Celulas), JFSCON, PlayerName(playerid));
if (!DOF2::FileExists(Celulas)) return SendClientMessage ( playerid , -1 , "Você não tem um veiculo!" ) ;
if (!IsPlayerInVehicle(playerid, JFSID[playerid])) return SendClientMessage (playerid , -1 , "Você não está em seu veiculo." ) ;
ShowPlayerDialog(playerid, 7337, DIALOG_STYLE_LIST, "JFS Concessionária - Menu", "Estacionar Neste Lugar\nCor do Veiculo\nVender Veiculo\nPlaca Veiculo\nGrana Veiculo", "Selecionar", "Cancelar");
return true;
}
CMD:grana(playerid, params[])
{
GivePlayerMoney(playerid, 500000);
return true;
}
CMD:irla(playerid, params[])
{
// if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xDEEE20FF, "Apenas Para Administrador Logado na RCON!");
SetPlayerPos(playerid, 2132.0010,-1149.9999,24.2075);
return true;
}
CMD:localizarveiculo(playerid, params[])
{
format(Celulas, sizeof(Celulas), JFSCON, PlayerName(playerid));
if (!DOF2::FileExists(Celulas)) return SendClientMessage ( playerid , -1 , "Você não tem um veiculo!" ) ;
JFSCheck[playerid] = 1;
static Float:CordX, Float:CordY, Float:CordZ;
GetVehiclePos(JFSID[playerid], CordX, CordY, CordZ);
SetPlayerCheckpoint (playerid , CordX, CordY, CordZ, 10.0);
SendClientMessage(playerid , -1, "Seu Veículo Está Marcado no Mapa !");
return true;
}
CMD:excluirveiculo(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xDEEE20FF, "Apenas Para Administrador Logado na RCON!");
format(Celulas, sizeof(Celulas), JFSCON, PlayerName(playerid));
if(!DOF2::FileExists(Celulas)) return SendClientMessage(playerid, -1, "Esse Úsuario não tem veiculo!");
format(Celulas, sizeof(Celulas), "Arquivo Veiculo_%s.ini Excluido com Sucesso dos ScriptFiles !", PlayerName(playerid));
SendClientMessage(playerid, -1, Celulas);
DOF2::RemoveFile(Celulas);
DOF2::SaveFile();
if(IsPlayerConnected(strlen(PlayerName(playerid))))
{
JFSID[strlen(params)] = 0;
DestroyVehicle(JFSID[strlen(PlayerName(playerid))]);
}
return true;
}