07.11.2009, 22:24
Hello, view days ago i whas posting this forum full of car diliver not works.
But it's work now and i have deleted.
But now i get another one...
when i start mission (cashBox) i can pick it up and diliver it,
After that he dont make a new one!
Can some one help me or giff me another CashBox script with exp for player (I have rpg)
Or can u fix my error?
here u get the code sorry for the long code
But it's work now and i have deleted.
But now i get another one...
when i start mission (cashBox) i can pick it up and diliver it,
After that he dont make a new one!
Can some one help me or giff me another CashBox script with exp for player (I have rpg)
Or can u fix my error?
here u get the code sorry for the long code
Код:
new string[128];
if(MissionActive == 1)
{
if(PlayerIsDoingMission == INVALID_PLAYER_ID)
{
ResetMissions();
new rcashbox;
if(city == 1){rcashbox = random(sizeof(RandomFindCashbox_LS));}
if(city == 2){rcashbox = random(sizeof(RandomFindCashbox_SF));}
RandomCashboxMissionMoney = MinCashboxMissionMoney+random(MaxCashboxMissionMoney-MinCashboxMissionMoney);
if(city == 1){format(string, sizeof(string), "** Mission: Cashbox **: Get the CashBox %s! Worth: $%d,-", RandomFindCashboxName_LS[rcashbox][0], RandomCashboxMissionMoney);}
if(city == 2){format(string, sizeof(string), "** Mission: Cashbox **: Get The CashBox %s! Worth: $%d,-", RandomFindCashboxName_SF[rcashbox][0], RandomCashboxMissionMoney);}
SendClientMessageToAll(COLOR_ORANGE, string);
new Float:ratio = 4.0;
for(new i=0; i<MAX_SLOTS; i++)
{
if(city == 1){SetPlayerCheckpoint(i, RandomFindCashbox_LS[rcashbox][0], RandomFindCashbox_LS[rcashbox][1], RandomFindCashbox_LS[rcashbox][2], ratio);}
if(city == 2){SetPlayerCheckpoint(i, RandomFindCashbox_SF[rcashbox][0], RandomFindCashbox_SF[rcashbox][1], RandomFindCashbox_SF[rcashbox][2], ratio);}
}
if(city == 1){
CheckpointBusyX = RandomFindCashbox_LS[rcashbox][0];
CheckpointBusyY = RandomFindCashbox_LS[rcashbox][1];
CheckpointBusyZ = RandomFindCashbox_LS[rcashbox][2];}
if(city == 2){
CheckpointBusyX = RandomFindCashbox_SF[rcashbox][0];
CheckpointBusyY = RandomFindCashbox_SF[rcashbox][1];
CheckpointBusyZ = RandomFindCashbox_SF[rcashbox][2];}
CheckpointBusyS = ratio;
AllPlaySound(1139);
}
}
if(MissionActive >= 3)
{
ResetMissions();
MissionActive = 1;
OnGameModeMission();
}
return 1;
}
public ResetMissions()
{ if(pdebug == 1){print("[DEBUG] ResetMissions()");}
PlayerIsDoingMission = INVALID_PLAYER_ID;
CheckpointBusyX = 0.0;
CheckpointBusyY = 0.0;
CheckpointBusyZ = 0.0;
CheckpointBusyS = 0.0;
for(new i=0; i<MAX_SLOTS; i++)
{
DisablePlayerCheckpoint(i);
SetVehicleParamsForPlayer(SearchedVehicle, i, 0, 0);
}
SendVehicleToRespawn(SearchedVehicle);
SearchedVehicle = 0;
MissionInUse[1] = 0;
MissionInUse[3] = 0;
return 1;
}

