1. Заменяем свой /fixcar на:
Code
else if(strcmp(cmd, "/fixcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pCars] != 0)
{
new Float:plocx,Float:plocy,Float:plocz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(caridhouse[playerid],plocx,plocy+4, plocz);
SetVehicleZAngle(caridhouse[playerid], 180);
GiveMoney(playerid, -50000); //===== тут цена доставки авто меняйте на свое
format(string, sizeof(string), "Ваш Автомобиль Доставлен! Вы заплатили $50000");
SendClientMessage(playerid, COLOR_BLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "У вас нету личного автомобиля");
}
}
}
2. Далее делаем парковку.
Code
else if(strcmp(cmd, "/park", true) == 0)
{
if(PlayerInfo[playerid][pCars] != 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, caridhouse[playerid]))
{
SendClientMessage(playerid, COLOR_GREY,"{ff0000}x {ffffff}Транспорт занят игроком");
return 1;
}
}
SetVehiclePos(caridhouse[playerid], CarInfo[caridhouse[playerid]][cPosX], CarInfo[caridhouse[playerid]][cPosY], CarInfo[caridhouse[playerid]][cPosZ]);
SetVehicleZAngle(caridhouse[playerid], CarInfo[caridhouse[playerid]][cPosR]);
SetPlayerCheckpoint(playerid,CarInfo[caridhouse[playerid]][cPosX],CarInfo[caridhouse[playerid]][cPosY],CarInfo[caridhouse[playerid]][cPosZ],6);
SendClientMessage(playerid, COLOR_GREY,"{ffffff}Автомобиль вернулся на место парковки.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{ff0000}x {ffffff}У вас нет Автомобиля!");
}
}