[Help] Vehicle ID change when loading
#1

Hello, i have a problem when my Gamemode and filterscript loads; in my Gamemode there are some vehicles (for factions etc...) and my filterscript load a file with other vehicles added (Owned Vehicles).
I Need that the Server fristly load the Gamemode with ALL vehicles and set the IDs, then starts the loading of the FS. So in the Gamemode if i have set 200 vehicles the server will give Vehicles IDs 1 to 200 then when start the loading of the Filterscript other VehicleID

My problem is how i'm now set, the Server Mix ID. This mix of Vehicle IDs make my Gamemode not work in the right way: for example if i enter in an ambulance the server will say "You are not a Pizza Boy" and so on...

Thanks for have read
Reply
#2

Vehicle ID != Model ID.
Reply
#3

i think this will work.
pawn Код:
forward LoadFs();

public LoadFs()
{
SendRconCommand("loadfs fs.amx");
return 1;
}

public OnGameModeInit()
{
SetTimer("LoadFs",3000,0);//put at the end just incase.
return 1;
}

public OnGameModeExit()
{
SendRconCommand("unloadfs fs.amx");
return 1;
}
now remove the filterscript from the server.cfg and then change the names of the fs in the code above. This will load it 3 seconds after the gamemode starts so the gm vehicles load first, then the fs.
Reply
#4

Quote:
Originally Posted by tom_jonez
i think this will work.
pawn Код:
forward LoadFs();

public LoadFs()
{
SendRconCommand("loadfs fs.amx");
return 1;
}

public OnGameModeInit()
{
SetTimer("LoadFs",3000,0);//put at the end just incase.
return 1;
}

public OnGameModeExit()
{
SendRconCommand("unloadfs fs.amx");
return 1;
}
now remove the filterscript from the server.cfg and then change the names of the fs in the code above. This will load it 3 seconds after the gamemode starts so the gm vehicles load first, then the fs.
Could be shorter.
pawn Код:
forward LoadFs();
public LoadFs() SendRconCommand("loadfs fs");
public OnGameModeInit() SetTimer("LoadFs",3000,0);
public OnGameModeExit() SendRconCommand("unloadfs fs");
Reply
#5

thanks so much for have reply
i'm going to test it right now, and i will say if it's working thanks again

WORK
Reply
#6

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by tom_jonez
i think this will work.
pawn Код:
forward LoadFs();

public LoadFs()
{
SendRconCommand("loadfs fs.amx");
return 1;
}

public OnGameModeInit()
{
SetTimer("LoadFs",3000,0);//put at the end just incase.
return 1;
}

public OnGameModeExit()
{
SendRconCommand("unloadfs fs.amx");
return 1;
}
now remove the filterscript from the server.cfg and then change the names of the fs in the code above. This will load it 3 seconds after the gamemode starts so the gm vehicles load first, then the fs.
Could be shorter.
pawn Код:
forward LoadFs();
public LoadFs() SendRconCommand("loadfs fs");
public OnGameModeInit() SetTimer("LoadFs",3000,0);
public OnGameModeExit() SendRconCommand("unloadfs fs");
except the only thing that could be shorter is the public LoadFs bc everything else needs to be put inside the gm.... which doesnt have 1 script execution...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)