My car diliver work but yellow marker not!
#1

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!
Код:
     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;
}
Reply
#2

Yellow markers (SetVehicleParamsForPlayer) can only be applied to vehicles which are streamed in, so if you aren't near enough that vehicle to be streamed you can use that for vehicle marker.
You can make a map icon or checkpoint to mark vehicle.
Reply
#3

Allright and how to make it? or can it?
Reply
#4

Quote:
Originally Posted by Mkb122
Allright and how to make it? or can it?
bumb i have the Same Problem :\
Reply
#5

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer

In the end of page
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)