Mattsy 29 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 Mam problem s modom ked sa nietko pripoji tak sa mu hned hra restartne.Nemam absolutne tusenie cim to moze byt ked si dam TYS tak mi neukaze ziadny warning ani error.Napadlo ma ze to moze byt objektmy ale tie mam cez Y objects takze nwm pls poradte. Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 hod sem onplayerconnect , disconnect Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 public OnPlayerConnect(playerid) { povolanie[playerid]=0; PLAYERLIST_authed[playerid]=false; ridicak[playerid]=dUserINT(PlayerName(playerid)).("ridicak"); povolanie[playerid]=dUserINT(PlayerName(playerid)).("Povolanie"); new novyhrac[100]; GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "%s sa pripojil na server.", novyhrac); SendClientMessageToAll(COLOR_YELLOW, novyhrac); SetPlayerMapIcon(playerid, 1,2638.2239, 1128.6788, 11.1797, 5,COLOR_GREEN);//odtahovka SetPlayerMapIcon(playerid, 2,2840.4343, 1278.8081, 11.3906, 40,COLOR_GREEN);//Vodic Autobusu SetPlayerMapIcon(playerid, 3,2146.6052, 1679.2318, 10.8203, 44,COLOR_GREEN);//sicilska mafia SetPlayerMapIcon(playerid, 4,2036.2122, 1009.5632, 10.8203, 43,COLOR_GREEN);//yakuza SetPlayerMapIcon(playerid, 5,1607.8472, 1817.3857, 10.8203, 22,COLOR_GREEN);//doktor SetPlayerMapIcon(playerid, 6,1067.9639, 2092.2534, 20.0156, 48,COLOR_GREEN);//ruska mafia SetPlayerMapIcon(playerid, 7,1158.1434, 1407.8470, 5.8203, 33,COLOR_GREEN);//pretekar SetPlayerMapIcon(playerid, 8,1496.0477, 731.0602, 10.8203, 53,COLOR_GREEN);//limosluzba SetPlayerMapIcon(playerid, 9,1750.5627, 721.8014, 10.8203, 11,COLOR_GREEN);//smetiari SetPlayerMapIcon(playerid, 10,2395.7727, 986.6396, 10.8203, 58,COLOR_GREEN);//tuner SetPlayerMapIcon(playerid, 12,2815.3977, 971.1782, 10.7500, 16,COLOR_GREEN);//colnik SetPlayerMapIcon(playerid, 13,697.1406 ,1954.5786,5.5391, 12,COLOR_GREEN);//slapka SetPlayerMapIcon(playerid, 14,2270.4536, 2437.1069, 46.9693, 30,COLOR_GREEN);//mestsky policajt,S.W.A.T. SetPlayerMapIcon(playerid, 15,1774.7808, 2065.8628, 10.8203, 20,COLOR_GREEN);//hasic SetPlayerMapIcon(playerid, 16,279.3407, 1925.5687, 17.6406, 18,COLOR_GREEN);//vojak SetPlayerMapIcon(playerid, 17,-322.1700, 1535.7372, 75.5625, 55,COLOR_GREEN);//drifter SetPlayerMapIcon(playerid, 18,-596.1560, 2016.4071, 77.0000, 60,COLOR_GREEN);//elektrikar SetPlayerMapIcon(playerid, 19,-406.3691,1238.2786,3.4109, 38,COLOR_GREEN);//speleolog SetPlayerMapIcon(playerid, 20,818.4362,855.1652,11.4259, 8,COLOR_GREEN);//banik SetPlayerMapIcon(playerid, 21,590.0405,1228.6836,11.7188, 34,COLOR_GREEN);//skladnik SetPlayerMapIcon(playerid, 22,-377.6195,2242.1392,42.6185, 61,COLOR_GREEN);//filmar SetPlayerMapIcon(playerid, 23,254.4074,1414.9418,10.7075, 28,COLOR_GREEN);//chemik SetPlayerMapIcon(playerid, 24,-324.3145,821.0391,14.2960, 26,COLOR_GREEN);//polovnik SetPlayerMapIcon(playerid, 25,2066.2197,2175.7131,10.8203, 42,COLOR_GREEN);//turista SetPlayerMapIcon(playerid, 26,2066.2197,2175.7131,10.8203, 51,COLOR_GREEN);//arch GameTextForPlayer(playerid,"REGISTRUJ SA A TVOJE VECI SA TI ULOZIA /register heslo",5000,5); SendClientMessage(playerid,COLOR_ORANGE,"Vitajte v mode urobenom vvyhradne pre zabavu, predtym nez zacnes hrat si precitaj /help."); gActivePlayers[playerid]++; gLastGaveCash[playerid] = GetTickCount(); return 1; } //------------------------------------------------------------------------------------------------------ public OnPlayerDisconnect(playerid, reason) { Object_OnPlayerDisconnect(playerid, reason); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); dUserSetINT(PlayerName(playerid)).("x",floatround(x)); dUserSetINT(PlayerName(playerid)).("y",floatround(y)); dUserSetINT(PlayerName(playerid)).("z",floatround(z)); dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("povolanie",povolanie[playerid]); if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; dUserSetINT(PlayerName(playerid)).("ridicak",ridicak[playerid]); new odchozihrac[100]; GetPlayerName(playerid, odchozihrac, 30); switch (reason) { case 0: format(odchozihrac, 100, "%s opustil server. (Spadla hra)", odchozihrac); case 1: format(odchozihrac, 100, "%s opustil server. (Odisiel)", odchozihrac); case 2: format(odchozihrac, 100, "%s byl vyhozen. (Kick/Ban)", odchozihrac); } SendClientMessageToAll(COLOR_YELLOW, odchozihrac); gActivePlayers[playerid]--; } Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 v disconnectu ..hod si to vsechno mezi {} v playerlist tedy treba if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("kozy",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("vozy",GetPlayerMoney(playerid)); } a chybi ti tam return :wtf: Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 Sakra ja som dal stary mod ktory je cely do****** Tu ej novy nema este ani 500 riadkov a OnPlayerConnect a Disconnect: public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,"~g~STUNT SERVER",1000,5); SendClientMessage(playerid,COLOR_ORANGE,"Vitajte v mode urobenom len na STUNTOVANIE, predtym nez zacnes hrat si preciatj /help."); return 1; } public OnPlayerDisconnect(playerid, reason) { Object_OnPlayerDisconnect(playerid, reason); return 1; } Wem neni tam nic este ale robil som ho kratko asi len 10 min isiel vyskusat a neslo. Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 mas tam YSI :?: Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 Ja wem ved objecty mam cez YSI Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 samotny YSI rekl ze shazuje server ..skus vymazat objecty auta atd..celej ysy Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 takze mam mat server bez aut a objektov? Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 k autum a objectum nepotrebujes YSI ...createobject , addstaticvehicle netreba YSI Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 Ale ja mam objekty cez CreateDynamicObject cize YSI ale auta nie to amm normal AddStaticVehicle EDIT:v YSI to nie je mam prec YSI a nejde aj tak Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 24. Listopad, 2008 Share Odesláno: 24. Listopad, 2008 tak to je nekde v pawnu nebo serverem ping 500 ze ? ...posli pawno 242680462 Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 24. Listopad, 2008 Author Share Odesláno: 24. Listopad, 2008 hh PING 500 nemam a ICQ mi davs uz 3 krat uz si ma zapametaj a poslem ti SZ nejde mi ICQ nwm preco Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 25. Listopad, 2008 Share Odesláno: 25. Listopad, 2008 uz to jede ? :?: Link to comment Share on other sites More sharing options...
0 Guest pipik Odesláno: 25. Listopad, 2008 Share Odesláno: 25. Listopad, 2008 ysi je na ... streamer Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 25. Listopad, 2008 Share Odesláno: 25. Listopad, 2008 ysi je na 2 veci ...za 1. nahovno za 2. na nic Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 25. Listopad, 2008 Author Share Odesláno: 25. Listopad, 2008 stale mi to nejde Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 25. Listopad, 2008 Share Odesláno: 25. Listopad, 2008 ja ti to poslal prez pm..ze ty mas nahovno net to me nezajima .. Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 25. Listopad, 2008 Author Share Odesláno: 25. Listopad, 2008 chyba nie je v mode ale u mna v pc Link to comment Share on other sites More sharing options...
Dotaz
Mattsy 29
Mam problem s modom ked sa nietko pripoji tak sa mu hned hra restartne.Nemam absolutne tusenie cim to moze byt ked si dam TYS tak mi neukaze ziadny warning ani error.Napadlo ma ze to moze byt objektmy ale tie mam cez Y objects takze nwm pls poradte.
Link to comment
Share on other sites
18 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now