17.08.2018, 19:36
Quote:
Ok but as u can see from StartTruckerJob stock, i'm using the random function to select random delivery:
pawn Код:
|
Код:
enum pInfo { StartingPoint, EndingPoint, } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
PlayerInfo[playerid][StartingPoint] = MisRand; PlayerInfo[playerid][MissionID] = MisRand;
Код:
forward Trucker2(playerid); public Trucker2(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pConvoy] == PlayerInfo[playerid][pConvoy]) { if(IsPlayerConnected(i)) { DisablePlayerCheckpoint(playerid); new end = PlayerInfo[playerid][StartingPoint]; new End = PlayerInfo[playerid][StartingPoint]; PlayerInfo[playerid][EndingPoint] = end; TogglePlayerControllable(playerid, 1); SetPlayerCheckpoint(playerid, trucker[end][ux], trucker[end][uy], trucker[end][uz], 10); truck_PlayerJob[playerid] = 2; new workmission2[250]; format(workmission2,sizeof(workmission2), "~w~Now deliver Head To ~r~%s ~w~To Unload The ~y~%s", trucker[End][ulpname], trucker[end][loadname]); PlayerTextDrawSetString(playerid, work[playerid], workmission2); } } } return 1; }