[AJUDA]OnPlayerSpawn
#3

Й arrumou sу que quando saiu do server meu lv vai pra 0 :/

Antes que peзa

OnPlayerDisconnect
Код:
public OnPlayerDisconnect(playerid, reason)
{

    logged[playerid] = 0;
        logado[playerid] = 0;


        #if Leavemessages == true
        DestroyObject(objectid);
        new PlayerName[30], string[256];
        switch (reason)
        new pname[24];
    GetPlayerName(playerid, pname, sizeof pname);
        {
                case 0:
        {
            if(SilentBanKick[playerid] == 0)
            {
                                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                                format(string, 256, "%s(%i) saiu do server! (Crash/Conexгo)", PlayerName);
                                SendClientMessageToAll(leavemessagecolor, string);
                        }
                }
                case 1:
                {
                        if(SilentBanKick[playerid] == 0)
            {
                                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                                format(string, 256, "%s(%i) saiu do server! (Saindo...)", PlayerName);
                                SendClientMessageToAll(leavemessagecolor, string);
                        }
                }
                case 2:
                {
                        if(SilentBanKick[playerid] == 0)
            {
                                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                                format(string, 256, "%s(%i) fez merda e foi kickado/banido! (Kick/Ban)", PlayerName);
                                SendClientMessageToAll(leavemessagecolor, string);
                        }
                }
        }

       #endif
}
Reply


Messages In This Thread
[AJUDA]OnPlayerSpawn - by Nake01 - 28.05.2011, 21:14
Re: [AJUDA]OnPlayerSpawn - by The Knight - 28.05.2011, 21:19
Re: [AJUDA]OnPlayerSpawn - by Nake01 - 28.05.2011, 21:34
Re: [AJUDA]OnPlayerSpawn - by The Knight - 28.05.2011, 21:42
Re: [AJUDA]OnPlayerSpawn - by Nake01 - 28.05.2011, 21:57

Forum Jump:


Users browsing this thread: 1 Guest(s)