- 0
Problema Masini job
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
andrei04072
Cum fac sa la un job anume sa poti merge si cu masini personale si cu masinile din GM
[pawn]public KamionPrehrane(carid) // vozac prehrambene robe
{
new modelid = GetVehicleModel(carid);
if((carid >= 298) && (carid <= 307))
if(modelid == 403 || modelid == 514 || modelid == 515)
{
return 1;
}
return 0;
}[/pawn]
[pawn]if(strcmp(cmd, "/starttruck", true) == 0)
{
new veh = GetPlayerVehicleID(playerid)
if(PlayerInfo[playerid][pJob] == 5)
{
if(KamionPrehrane(veh))
{
if(PlayerInfo[playerid][pPrehrana] == 0)
{
CP[playerid] = 1608;
SendClientMessage(playerid, COLOR_WHITE, "{995031}Atasati {F81414} remorca {995031}si duceti-va la punctul rosu ! ");
SendClientMessage(playerid, COLOR_WHITE, "{995031}Mergeti cu atenti si nu avariati camionul !");
PlayerInfo[playerid][pPrehrana] = 1;
SetPlayerCheckpoint(playerid, 2949.24,-1036.21,13.5, 8.0);
}
else return SendClientMessage(playerid, COLOR_WHITE, "{995031}Deja transporti marfa!");
}
else return SendClientMessage(playerid, COLOR_WHITE, "{995031}Nu esti intr-un camion pentru transport!");
}
else return SendClientMessage(playerid, COLOR_WHITE, "{995031}Nu ai job Transport alimente!");
return 1;
}[/pawn]
[pawn]if(KamionPrehrane(newcar))
{
if(PlayerInfo[playerid][pJob] == 5)
{
SendClientMessage(playerid, COLOR_GREY,"{FF00EA}Utilizeaza: {FFFFFF}/starttruck /stoptruck.");}
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"{F3FF02}[Greseala] {FF00EA}Nu ai cheile de la masina.");}
}[/pawn]
2 answers to this question
Recommended Posts