07.04.2019, 18:19
Code:
// ONGAMEMODEINIT public OnGameModeInit() { mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML); print("------------- SERVER START -------------"); SQL = mysql_connect("ip", "client", "base", "pass"); if(mysql_errno() != 0) { SetGameModeText("MySQL Error"); SendRconCommand("password mysqlerror404"); SendRconCommand("language RO/EN"); SendRconCommand("hostname For Fuck Sake (mysql connection failed)"); } else { new y,m,d,hour,mins,sec,version_text[28]; getdate(y,m,d); gettime(hour,mins,sec); if(m==1) format(version_text,sizeof(version_text), "ffs, %d Jan %d",d,y); else if(m==2) format(version_text,sizeof(version_text), "ffs, %d Feb %d",d,y); else if(m==3) format(version_text,sizeof(version_text), "ffs, %d Mar %d",d,y); else if(m==4) format(version_text,sizeof(version_text), "ffs, %d Apr %d",d,y); else if(m==5) format(version_text,sizeof(version_text), "ffs, %d May %d",d,y); else if(m==6) format(version_text,sizeof(version_text), "ffs, %d Jun %d",d,y); else if(m==7) format(version_text,sizeof(version_text), "ffs, %d Jul %d",d,y); else if(m==8) format(version_text,sizeof(version_text), "ffs, %d Aug %d",d,y); else if(m==9) format(version_text,sizeof(version_text), "ffs, %d Sep %d",d,y); else if(m==10) format(version_text,sizeof(version_text), "ffs, %d Oct %d",d,y); else if(m==11) format(version_text,sizeof(version_text), "ffs, %d Nov %d",d,y); else if(m==12) format(version_text,sizeof(version_text), "ffs, %d Dec %d",d,y); SetGameModeText(version_text); SendRconCommand("mapname LS - LV"); SendRconCommand("language RO/EN"); SendRconCommand("hostname For Fuck Sake RPG | Quest / GiftBox / Recrutam"); //SendRconCommand("password ffssmek"); SetNameTagDrawDistance(30); EnableStuntBonusForAll(0); ShowPlayerMarkers(2); LimitPlayerMarkerRadius(5.0); SendRconCommand("weather 13"); countdown = 0; for(new c=0;c<MAX_VEHICLES;c++) { Gas[c] = GasMax; } LoadTextdraws(); LoadSystems(); LoadAllDynamicObjects(); LoadAllObjects(); LoadSTextDraws(); }