08.02.2019, 04:41
HTML Code:
public OnGameModeExit() { foreach(new i: Player) OnPlayerDisconnect(i, 1); //-------------------------------------------------------------------------- new x; //-------------------------------------------------------------------------- while (x<500) { if (x!=(0xFFFF)) { CallRemoteFunction("OnPlayerDisconnect", "i", x); } ++ x; } //-------------------------------------------------------------------------- new ls_Query[1024]; //-------------------------------------------------------------------------- for (new i = 1; i < MAX_GANGS; i++) { format(ls_Query, sizeof(ls_Query), "UPDATE `GangTers` SET `GangTerOwner` = '%d' WHERE `ID` = '%d'", Teritories[i][owner], i); mysql_tquery(DB_Connect, ls_Query, "", ""); } //-------------------------------------------------------------------------- OnUpdate(); mysql_close(DB_Connect); //-------------------------------------------------------------------------- return 1; }