public OnGameModeInit()
{
mysql_connect(SQL_HOST, SQL_USER, SQL_DATABASE, SQL_PASS);
SetGameModeText(HOSTNAME);
printf("Max Vehicle Plate Length: %d", MAX_VEHICLE_PLATE);
mysql_debug(1);
OneMin = SetTimer("OneMinuteTimer", 60000, 1);
DisableInteriorEnterExits();
ShowPlayerMarkers(0);
LoadFactions();
LoadVehicles();
// gettime(hours, minute, secs);
// format(timestr,32,"%02d:%02d",hours, minute);
// SAM_OnGameModeInit();
LoadHouses();
LoadBusinesses();
BEnt = CreateDynamicPickup(1318,23,135.3096, 1955.0949, 19.4289,0);// BASE ENTRANCE
fireman = CreateDynamicPickup(366,23,1491.9233,1305.8552,1093.2964,0);// Fireman.
gunpart = CreateDynamicPickup(1239, 23,-2230.5210,2560.3955,1.8223,0);//Gunpart icon.
gunorder = CreateDynamicPickup(1239, 23, -1478.3879,2630.9858,58.7879);
ManualVehicleEngineAndLights();
txtTimeDisp = TextDrawCreate(625.0,12.00,"00:00:00");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp,0); // no shadow
TextDrawSetOutline(txtTimeDisp,2); // thickness 1
TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
TextDrawColor(txtTimeDisp,0xFFFFFFFF);
TextDrawAlignment(txtTimeDisp,3);
TextDrawLetterSize(txtTimeDisp,0.5,1.5);
for(new i=0;i<MAX_PLAYERS;i++)
{
speed[i] = TextDrawCreate(478,389,"_");
TextDrawLetterSize(speed[i],0.37,2.0);
TextDrawSetOutline(speed[i],1);
TextDrawFont(speed[i], 2);
fuel[i] = TextDrawCreate(478,413,"_");
TextDrawLetterSize(fuel[i],0.37,2.0);
TextDrawSetOutline(fuel[i],1);
TextDrawFont(fuel[i], 2);
}
UpdateTimeAndWeather();
SetTimer("UpdateTimeAndWeather",1000,1);
EnableStuntBonusForAll(0);
return 1;
}
new Text:gMyText = Text:INVALID_TEXT_DRAW;
//Or
new PlayerText:gMyPlayerText[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW, ...};
One of the possibilities is that, you are not properly destroying the textdraws when player leaves the server. Another one is that your game mode and filterscripts messed up somehow and there are collisions.
|