Pls nemuze mi nekdo helpnout ?? jak uz sem rikal delam mod BCL a kdyz ho testuju na serveru tak se tam dostanu normalne dalsi hrac prijde a jde mu to taky normlne a nekomu to pada hned kdyz se pripoji ..nekomu po chvili a nekomu vubec ...pls helpnete mi hledal sem vcera vecer skoro vsude ale nic nic nic sem nenasel ...tady davam z connectu a discconectu
public OnPlayerDisconnect(playerid, reason)
{
if (PLAYERLIST_authed[playerid])
{
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
dUserSetINT(PlayerName(playerid)).("ridicak",ridicak[playerid]);
dUserSetINT(PlayerName(playerid)).("bank",bank[playerid]); // do OnPlayerDisconnect
}
PLAYERLIST_authed[playerid]=false;
new odchozihrac[100];
GetPlayerName(playerid, odchozihrac, 30);
switch (reason)
{
case 0: format(odchozihrac, 100, "Hráč %s opustil server [ Spadla hra ]", odchozihrac);
case 1: format(odchozihrac, 100, "Hráč %s opustil server [ Odešel ]", odchozihrac);
case 2: format(odchozihrac, 100, "Hráč %s byl vyhozen [ Kick/Ban ]", odchozihrac);
}
SendClientMessageToAll(0xEFEFF7AA, odchozihrac);
SendDeathMessage(playerid, INVALID_PLAYER_ID, 201);
return 1;
}
Dotaz
Daffy 8
Pls nemuze mi nekdo helpnout ?? jak uz sem rikal delam mod BCL a kdyz ho testuju na serveru tak se tam dostanu normalne dalsi hrac prijde a jde mu to taky normlne a nekomu to pada hned kdyz se pripoji ..nekomu po chvili a nekomu vubec ...pls helpnete mi hledal sem vcera vecer skoro vsude ale nic nic nic sem nenasel ...tady davam z connectu a discconectu
Link to comment
Share on other sites
6 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