Cz_Ritch 0 Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 jak udelat na server to kdys nejaký hrac příde upozorní to všecny ostatní hrače, např: Hráč:_______ se připojil, a este, Hráč:________ se odpojil, Buď -(pad hry) nebo -(odešel) dík za rady! :prdel: Link to comment Share on other sites More sharing options...
0 logigal 0 Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 pozri sa v tutoch v Pawno - Navody a hladaj Link to comment Share on other sites More sharing options...
0 Guest Smaženy Syr Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 public OnPlayerConnect() } SendClientMessageToAll(i, BARVA_JakouChces, "[iNFO]Hráč %s je připojil na server :)"); Link to comment Share on other sites More sharing options...
0 Guest Mamusko Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 Connect : public OnPlayerConnect(playerid) { new hrac[100]; GetPlayerName(playerid, hrac, 24); format(hrac, 100, "%s sa pripojil do hry.", hrac); SendClientMessageToAll(0xA52A2AAA, hrac); return 1; } Disconnect : public OnPlayerDisconnect(playerid, reason) { new hrac[100]; GetPlayerName(playerid, hrac, 30); switch (reason) { case 0: format(hrac, 100, "%s Padla hra (Timeout)", hrac); case 1: format(hrac, 100, "%s Odišiel (Odesel)", hrac); case 2: format(hrac, 100, "%s Bol zabanovaný (Kick/Ban)", hrac); } SendClientMessageToAll(0xA52A2AAA, hrac); return 1; } Link to comment Share on other sites More sharing options...
0 Roox 1 Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 Radsi te opravim, aby se predeslo erorum public OnPlayerConnect(playerid) { new hrac[100]; GetPlayerName(playerid, hrac, 24); format(hrac, 100, "%s sa pripojil do hry.", hrac); SendClientMessageToAll(0xFFFFFFAA, hrac); } Link to comment Share on other sites More sharing options...
0 Guest Mamusko Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 Uz som to opravil Link to comment Share on other sites More sharing options...
0 Cz_Ritch 0 Odesláno: 13. Únor, 2010 Author Share Odesláno: 13. Únor, 2010 díky "lol" "study" Link to comment Share on other sites More sharing options...
0 Guest Mamusko Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 riadky? Link to comment Share on other sites More sharing options...
0 Cz_Ritch 0 Odesláno: 13. Únor, 2010 Author Share Odesláno: 13. Únor, 2010 sry chibi u mne! al eco to je? C:\Documents and Settings\ll\Plocha\7.9.pwn(196) : error 055: start of function body without function header C:\Documents and Settings\ll\Plocha\7.9.pwn(197) : error 010: invalid function or declaration C:\Documents and Settings\ll\Plocha\7.9.pwn(213) : error 055: start of function body without function header C:\Documents and Settings\ll\Plocha\7.9.pwn(214) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Link to comment Share on other sites More sharing options...
0 Guest Mamusko Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 ako to mam vediet ked sem nedas riadky ? Link to comment Share on other sites More sharing options...
0 Cz_Ritch 0 Odesláno: 13. Únor, 2010 Author Share Odesláno: 13. Únor, 2010 to je to! public OnPlayerConnect(playerid) { new hrac[100]; GetPlayerName(playerid, hrac, 24); format(hrac, 100, "%s se pripojil do krasné hry.", hrac); SendClientMessageToAll(0xFFFFFFAA, hrac); } { return 1; } public OnPlayerDisconnect(playerid, reason) { new hrac[100]; GetPlayerName(playerid, hrac, 30); switch (reason) { case 0: format(hrac, 100, "%s Spadla hra (Timeout)", hrac); case 1: format(hrac, 100, "%s Odešel (Odesel)", hrac); case 2: format(hrac, 100, "%s Byl zabanovaný (Kick/Ban)", hrac); } SendClientMessageToAll(0xA52A2AAA, hrac); return 1; } { return 1; } Link to comment Share on other sites More sharing options...
0 Guest Mamusko Odesláno: 13. Únor, 2010 Share Odesláno: 13. Únor, 2010 public OnPlayerConnect(playerid) { new hrac[100]; GetPlayerName(playerid, hrac, 24); format(hrac, 100, "%s se pripojil do krasné hry.", hrac); SendClientMessageToAll(0xFFFFFFAA, hrac); return 1; } public OnPlayerDisconnect(playerid, reason) { new hrac[100]; GetPlayerName(playerid, hrac, 30); switch (reason) { case 0: format(hrac, 100, "%s Spadla hra (Timeout)", hrac); case 1: format(hrac, 100, "%s Odešel (Odesel)", hrac); case 2: format(hrac, 100, "%s Byl zabanovaný (Kick/Ban)", hrac); } SendClientMessageToAll(0xA52A2AAA, hrac); return 1; } Link to comment Share on other sites More sharing options...
0 Cz_Ritch 0 Odesláno: 13. Únor, 2010 Author Share Odesláno: 13. Únor, 2010 dík Link to comment Share on other sites More sharing options...
Dotaz
Cz_Ritch 0
jak udelat na server to kdys nejaký hrac příde upozorní to všecny ostatní hrače, např:
Hráč:_______ se připojil, a este, Hráč:________ se odpojil, Buď -(pad hry) nebo -(odešel)
dík za rady! :prdel:
Link to comment
Share on other sites
12 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