02.12.2012, 10:45
Hi Scripterzzzz
i've made spoiler save system (just to try)
I have everything (saving, dialogs etc...) but the problem is that spoiler shows after i enter vehicle (i want to show it when gamemode starts)
Here is the code:
Timer only works when i enter vehicle... So when I enter spoiler will show, but i want spoiler to show when gamemode starts
(I tried under OnVehicleSpawn but then the spoiler isn't showing...)
THE PROBLEM: I want cars to spawn tuned when gamemode starts (with this code spoiler is added when player enter in that vehicle)
HELP !!!!!!!!!!
i've made spoiler save system (just to try)
I have everything (saving, dialogs etc...) but the problem is that spoiler shows after i enter vehicle (i want to show it when gamemode starts)
Here is the code:
Код:
public OnGameModeInit() { SetTimer("TuneTimer", 1000, false); // <- TIMER }
Код:
public TuneTimer(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehID], MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehSpoiler]); } }
(I tried under OnVehicleSpawn but then the spoiler isn't showing...)
THE PROBLEM: I want cars to spawn tuned when gamemode starts (with this code spoiler is added when player enter in that vehicle)
HELP !!!!!!!!!!