paveldaa 0 Odesláno: 17. Prosinec, 2011 Share Odesláno: 17. Prosinec, 2011 cs prosim poradtemi co mam udělat aby se mi po přihlášení nezobrazovalo toto : http://clip2net.com/s/1pdVE zkoušel jsem dát SpawnPlayer(playerid); ,do connect,requestclas a ani jedno nefungovalo,tak teda žádám o radu :-( kamoš taky už neví :-( Link to comment Share on other sites More sharing options...
0 oN3 0 Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 toto SpawnPlayer(playerid); dáš do loginu a hneď po prihláseni ťa to spawne Link to comment Share on other sites More sharing options...
0 oN3 0 Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 toto SpawnPlayer(playerid); dáš do loginu a hneď po prihláseni ťa to spawne Ale prd, to ho vrátí na tuhle tabulku, musí dát tomu publicu return false neviem ako ale mne to ide Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 30. Prosinec, 2011 Share Odesláno: 30. Prosinec, 2011 prosim vas preco ma po prihlaseni spawne a potom mi da kick Link to comment Share on other sites More sharing options...
0 Yamaha 0 Odesláno: 30. Prosinec, 2011 Share Odesláno: 30. Prosinec, 2011 co to mas za mod ? Alebo posli playerspawn/playerconnect popripadne dialogy prihlasenia Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 30. Prosinec, 2011 Share Odesláno: 30. Prosinec, 2011 uz to mam mal som to inak ako treba "lol" Link to comment Share on other sites More sharing options...
0 Pepa 2 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 Skus toto ale nwm jerstli to pujde: public OnPlayerConnect(playerid) { SpawnPlayer(playerid); TextDrawShowForPlayer(playerid, Nadpis); SendClientMessage(playerid,BILA,"Vítej na serveru."); new novyhrac[100]; //nadefiovaný nový hráč GetPlayerName(playerid, novyhrac, 24); format(novyhrac, 100, "Připojil se hráč %s ", novyhrac); SendClientMessageToAll(BARVA_SVZEL,novyhrac); SetPlayerPos(playerid, float(dUserINT(PlayerName(playerid)).("x")), float(dUserINT(PlayerName(playerid)).("y")), float(dUserINT(PlayerName(playerid)).("z"))); PLAYERLIST_authed[playerid] = false; PLAYERLIST_authed[playerid] = false; if (!PLAYERLIST_authed[playerid]) { if(udb_Exists(PlayerName(playerid))) // Když jeho ucet existuje { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Vítej zpět !\nNapiš heslo !","Použít","Odpojit"); // Když existuje zobrazíme dialog } else { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registrace","Vítej !\nZaregistruj se, napiš heslo","Použít","Odpojit"); // Když neexistuje zobrazíme dialog } } return 1; } ------------------------------------------------------- www.velkaparba.mypage.cz Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 omg mas poziciu? ak nie vytvor a toto cele addplayerxlass daj do ongamemodeinit. potom by ti to malo pojst Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 chlapec nema urcenu poziciu na spawn tak preco by tam mal dat spawnplayer? trosku logika ne? Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 chlapec nema urcenu poziciu na spawn tak preco by tam mal dat spawnplayer? trosku logika ne? som vtedy nevedel "lol" Link to comment Share on other sites More sharing options...
0 Frajtr 8 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 Když chcete radit tak se naučte základy a když chceš dělát gm tak se je nauč taky omg Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 bože ... smaž to celý a začni od znova a snaž se ... a ty to chceš aby hned po loginu tě to spawnlo? Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 bože ... smaž to celý a začni od znova a snaž se ... a ty to chceš aby hned po loginu tě to spawnlo? omg on nema urcenu poziciu kde ho to spawne ked sa prihlasi chapes? musi si dat do OnGameModeInit toto: AddPlayerClass(a tu vsetko ostatne); Link to comment Share on other sites More sharing options...
0 paveldaa 0 Odesláno: 31. Prosinec, 2011 Author Share Odesláno: 31. Prosinec, 2011 to tak mám :-( public ongamemodeinti() { AddPlayerClass(250,2169.7961,2407.7881,65.2773,81.7042,0,0,0,0,0,0); //mate n výběr postavu s ID 250 AddPlayerClass(232,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(190,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(193,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(44,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(25,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(226,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(188,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(19,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(216,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(170,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(169,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(15,-1976.4758,269.5956,35.1719,161.5001,0,0,0,0,0,0); // AddPlayerClass(143, 3639.0996, -1881.4706, 2.0473, 269.1425, 0, 0, 0, 0, 0, 0); AddPlayerClass(12,2174.8940,2415.9668,73.0339,79.4213,0,0,0,0,0,0); AddPlayerClass(101,2169.7961,2407.7881,65.2773,81.7042,0,0,0,0,0,0); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } no a registraci,v loginu mam if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Musíš zadat heslo !\nNapiš heslo !","Použít","Odpojit"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { SpawnPlayer(playerid); AdminLevel[playerid] = dUserINT(PlayerName(playerid)).("AdminLevel"); Job[playerid] = dUserINT(PlayerName(playerid)).("Povolani"); GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; SpawnPlayer(playerid); return SendClientMessage(playerid, BARVA, "Úspěšně přihlášen !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Nespravne heslo !","Použít","Odpojit"); } ,no ale stejnak mě to ukazuje pořád to spawn :-( Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 public ongamemodeinti() ? xD Link to comment Share on other sites More sharing options...
0 paveldaa 0 Odesláno: 31. Prosinec, 2011 Author Share Odesláno: 31. Prosinec, 2011 public ongamemodeinti() ?xD to jsem omg psal narychlo,to neni celej,je dlouhej,mam tam auta a je zbytečný abych je sem daval ne ? Link to comment Share on other sites More sharing options...
0 Hovnocuc 2 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 Jestli jsem to pochopil správně, chceš se po přihlášení rovnou spawnout bez výběru postav. Když se hráč přihlásí tak mu nastav nějakouo promněnnou a pak už jen do OnPlayerRequestClass (nebo jak to je) dej podmínku jestli je hráč přihlášený, pokuď ano tak mu musíš nastavit SpawnInfo a poté ho spawnout (SpawnPlayer(playerid)). Takhle nějak jsem si to kdysi dělal do svého módu takže by to mělo jít . Link to comment Share on other sites More sharing options...
0 paveldaa 0 Odesláno: 31. Prosinec, 2011 Author Share Odesláno: 31. Prosinec, 2011 Jestli jsem to pochopil správně, chceš se po přihlášení rovnou spawnout bez výběru postav.Když se hráč přihlásí tak mu nastav nějakouo promněnnou a pak už jen do OnPlayerRequestClass (nebo jak to je) dej podmínku jestli je hráč přihlášený, pokuď ano tak mu musíš nastavit SpawnInfo a poté ho spawnout (SpawnPlayer(playerid)). Takhle nějak jsem si to kdysi dělal do svého módu takže by to mělo jít . hmm chci se hned spawnou bez vyběru,ano to chci ,ale jakou podmínku ? Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 http://wiki.sa-mp.com/wiki/SetSpawnInfo_NL Link to comment Share on other sites More sharing options...
0 Hovnocuc 2 Odesláno: 31. Prosinec, 2011 Share Odesláno: 31. Prosinec, 2011 if(PLAYERLIST_authed[playerid]) { SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Angle, wapen1, ammu1, wapen2, ammu2, wapen3, ammu3); SpawnPlayer(playerid); } Link to comment Share on other sites More sharing options...
0 paveldaa 0 Odesláno: 31. Prosinec, 2011 Author Share Odesláno: 31. Prosinec, 2011 tj,díky ,fakčí to ,moc díky kluci Link to comment Share on other sites More sharing options...
Dotaz
paveldaa 0
cs prosim poradtemi co mam udělat aby se mi po přihlášení nezobrazovalo toto : http://clip2net.com/s/1pdVE
zkoušel jsem dát
,do connect,requestclas a ani jedno nefungovalo,tak teda žádám o radu :-( kamoš taky už neví :-(
Link to comment
Share on other sites
20 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