Andrey_Bened
Ученик
Здравствуйте у меня проблема с /dropcar я добавил на днях работу Дальнобойщика и теперь когда я пишу /dropcar и еду на место сдачи машины то мне пишет "Вы без прицепа" я посмотрел в моде и нашел от Дальнобойщика эту строку:
А вот сам /dropcar
Подскажите может что нибудь спутал.
PHP:
if(gruz[playerid] == 1)
{
if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,COLOR_GREY,"{FF0000}[Недоступно]{ffffff} Вы без прицепа.");
takeload[playerid] = 0;
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
DisablePlayerCheckpoint(playerid);
gruz[playerid] = 0;
new rand;
new strings[256];
new level = PlayerInfo[playerid][pTruckSkill];
if(level >= 0 && level <= 20) { rand = 1000-random(500); }
else if(level >= 21 && level <= 50) { rand = 1900-random(1000); }
else if(level >= 51 && level <= 100) { rand = 2800-random(1500); }
else if(level >= 101 && level <= 225) { rand = 8000-random(3600); }
PlayerInfo[playerid][pMoney] += rand;
format(strings, sizeof(strings),"Груз успешно доставлен. Ваша зарплата: {ff0000}$%d{ffffff}.", rand);
SendClientMessage(playerid, COLOR_WHITE, strings);
PlayerInfo[playerid][pTruckSkill] ++;
if(PlayerInfo[playerid][pTruckSkill] == 20)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 2, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 3, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 4, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 225)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика максимальный, теперь вы получаете более $3600 денег за доставку груза."); }
}
if(gruz1[playerid] == 1)
{
if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,COLOR_GREY,"{FF0000}[Недоступно]{ffffff} Вы без прицепа.");
takeload[playerid] = 0;
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
DisablePlayerCheckpoint(playerid);
gruz1[playerid] = 0;
new rand2;
new strings[256];
new level = PlayerInfo[playerid][pTruckSkill];
if(level >= 0 && level <= 20) { rand2 = 1800-random(500); }
else if(level >= 21 && level <= 50) { rand2 = 2680-random(1080); }
else if(level >= 51 && level <= 100) { rand2 = 4980-random(1880); }
else if(level >= 101 && level <= 225) { rand2 = 8680-random(2980); }
PlayerInfo[playerid][pMoney] += rand2;
format(strings, sizeof(strings),"Груз успешно доставлен. Ваша зарплата: {ff0000}$%d{ffffff}.", rand2);
SendClientMessage(playerid, COLOR_WHITE, strings);
PlayerInfo[playerid][pTruckSkill] ++;
if(PlayerInfo[playerid][pTruckSkill] == 20)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 2, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 3, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика 4, теперь вы получаете больше денег за доставку груза."); }
else if(PlayerInfo[playerid][pTruckSkill] == 225)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл дальнобойщика максимальный, теперь вы получаете более $3680 денег за доставку груза."); }
}
PHP:
else if(CP[playerid]==1)
{
if(IsPlayerInAnyVehicle(playerid))
{
PlayerInfo[playerid][pJackSkill] ++;
if(PlayerInfo[playerid][pJackSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл автоугонщика - 2."); }
else if(PlayerInfo[playerid][pJackSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл автоугонщика - 3."); }
else if(PlayerInfo[playerid][pJackSkill] == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл автоугонщика - 4."); }
else if(PlayerInfo[playerid][pJackSkill] == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "Ваш скилл автоугонщика - 5."); }
new level = PlayerInfo[playerid][pJackSkill];
if(level >= 0 && level <= 50)
{
format(string, sizeof(string), "Вы продали автомобиль за $%d, Вы можете продать следующий через 25 минут.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pMoney] += 2000;
PlayerInfo[playerid][pCarTime] = 1500;
}
else if(level >= 51 && level <= 100)
{
format(string, sizeof(string), "Вы продали автомобиль за $3000, Вы можете продать следующий через 20 минут.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pMoney] += 3000;
PlayerInfo[playerid][pCarTime] = 1200;
}
else if(level >= 101 && level <= 200)
{
format(string, sizeof(string), "Вы продали автомобиль за $4000, Вы можете продать следующий через 15 минут.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pMoney] += 4000;
PlayerInfo[playerid][pCarTime] = 900;
}
else if(level >= 201 && level <= 400)
{
format(string, sizeof(string), "Вы продали автомобиль за $5000, Вы можете продать следующий через 10 минут.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pMoney] += 5000;
PlayerInfo[playerid][pCarTime] = 600;
}
else if(level >= 401)
{
format(string, sizeof(string), "Вы продали автомобиль $7000, Вы можете продать следующий через 5 минут.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pMoney] += 7000;
PlayerInfo[playerid][pCarTime] = 300;
}
GameTextForPlayer(playerid, "~y~ЊPOѓAм쑆 A‹ЏO–OЂ…‡’", 2500, 1);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
else
{
GameTextForPlayer(playerid, "{ff3300}[Ошибка]{FFFFFF} Вы не в автомобиле.", 5000, 1);
}
}
else if(CP[playerid] == 5)
{
GameTextForPlayer(playerid, "~y~мA ЏOЌKE –…CC…†", 2500, 1);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
