03.11.2009, 13:14
Hello everyone i have my own real life roleplaying script!
But my car diliver not work i get an message ingame. with Car Expor: take the car and diliver to red marker u wil earn (Money) but when i see it i look at the radar and i dont see the yellow marker!
can some one help me with this? i have cashbox and the casbox work great! but car diliver not here u get my car diliver script help me pls!
But my car diliver not work i get an message ingame. with Car Expor: take the car and diliver to red marker u wil earn (Money) but when i see it i look at the radar and i dont see the yellow marker!
can some one help me with this? i have cashbox and the casbox work great! but car diliver not here u get my car diliver script help me pls!
Код:
if(MissionActive == 2)
{
if(MissionInUse[2] == 1)
{
if(GetPlayerVehicleID(playerid) == SearchedVehicle)
{
format(string, sizeof(string), "~y~Congratulations!~n~~w~You finished your mission~n~~g~Reward: $%d,-", RandomCarMissionMoney);
GameTextForPlayer(playerid, string, 5000, 4);
PlaySoundForPlayer(playerid, 1139);
GivePlayerMoney(playerid, RandomCarMissionMoney);
format(string, sizeof(string), "%s Has delivered the %s and earned $%d,-!", PlayerName[playerid], VehicleName[GetVehicleModel(SearchedVehicle)-400], RandomCarMissionMoney);
SendClientMessageToAll(COLOR_YELLOW, string);
MissionActive ++;
ResetMissions();
SendPlayerMissionfinished(playerid, 2, RandomCarMissionMoney);
}
}
return 1;
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{ if(pdebug == 1){printf("[DEBUG] OnPlayerLeaveCheckpoint(%d)", playerid);}
return 1;
}
public SendPlayerMissionfinished(playerid, kind, price)
{ if(pdebug == 1){printf("[DEBUG] SendPlayerMissionfinished(%d, %d, %d)", playerid, kind, price);}
new string[128];
if(kind == 1)
{
SendClientMessage(playerid, COLOR_BLUE, "_______< Mission: Cashbox >________");
}
if(kind == 2)
{
SendClientMessage(playerid, COLOR_BLUE, "_______< Mission: Car Export >________");
}
GivePlayerOneExp(playerid);
SendClientMessage(playerid, COLOR_GREY, " Exp: +1");
format(string, sizeof(string), " Money: +$%d,-", price);
SendClientMessage(playerid, COLOR_GREY, string);
SendClientMessage(playerid, COLOR_WHITE, "|--------------------------------------------------|");
format(string, sizeof(string), " New Level: %d, New Exp: %d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), " New Money: $%d,-", GetPlayerMoney(playerid));
SendClientMessage(playerid, COLOR_GREY, string);
SendClientMessage(playerid, COLOR_BLUE, "________________________________");
SetPlayerCrime(playerid, "doing illegal mission(s).", true, true);
return 1;
}

