28.02.2015, 11:00
Quote:
OnGameModeInit is executed before main, however illogical it may seem, so it is only natural that it will execute the fallback. So you can load all general stuff in OnGameModeInit, then set the state in main and execute another function to load the city specific stuff.
|
pawn Код:
public OnPayerSpawn(playerid) <GameMode:LS>
{
//..Only spawn location and messages here.
return 1;
}
public OnPayerSpawn(playerid) <GameMode:LV>
{
//..Only spawn location and messages here.
return 1;
}
public OnPayerSpawn(playerid) <>
{
//..All the spawn code for example giving weapon and setting variables.
return 1;
}