SA-MP Forums Archive
My car diliver work but yellow marker not! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My car diliver work but yellow marker not! (/showthread.php?tid=106447)



My car diliver work but yellow marker not! - Mkb122 - 03.11.2009

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;
}



Re: My car diliver work but yellow marker not! - Sergei - 03.11.2009

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.


Re: My car diliver work but yellow marker not! - Mkb122 - 07.11.2009

Allright and how to make it? or can it?


Re: My car diliver work but yellow marker not! - GforceNL - 08.11.2009

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


Re: My car diliver work but yellow marker not! - dearMonkey - 08.11.2009

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

In the end of page