Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Hide

$
0
0
Hello everybody, now i've created saved hide system

And
Here is the code

Code:

stock OnUserLogin(playerid)
{
        format(word, sizeof(word), "*** "LB2_E"Welcome back {%06x}%s, "LB2_E"you have been automatically logged in!", pColor[playerid], pName[playerid]);
        SendClientMessage(playerid, COLOR_RED, word);
        if(pTotalHours[playerid] == 0)
                format(word, sizeof(word), "*** "LB2_E"You have been online for "YELLOW_E"%d minutes, %d seconds.", pTotalMinutes[playerid], pTotalSeconds[playerid]);
        else
                format(word, sizeof(word), "*** "LB2_E"You have been online for "YELLOW_E"%d hours, %d minutes, %d seconds.", pTotalHours[playerid], pTotalMinutes[playerid], pTotalSeconds[playerid]);
        SendClientMessage(playerid, COLOR_RED, word);

        // MOTD
        //SendClientMessage(playerid, COLOR_GREEN, "MOTD: "LB_E"Check out our new race records! Major upgrade done to the house system!");

        format(tmpe, sizeof(tmpe), "02[Join] 03%s(%d) has joined the server. 11(Logged in as a %s)", pName[playerid], playerid, GetPlayerAdminLevelName(playerid));
        IRC_GroupSay(ircGroup, IRC_CHANNEL, tmpe);
        format(tmpe, sizeof(tmpe), "02[Join] 03%s(%d) has joined the server. 11(Logged in as a %s) 1(IP: %s)", pName[playerid], playerid, GetPlayerAdminLevelName(playerid), PlayerIP);
        IRC_GroupSay(ircGroup, IRC_aCHANNEL, tmpe);
        if(pAdmin[playerid] != 0 || pPremium[playerid] != 0)
        {
                switch(pAdmin[playerid])
                {
                        case 0: tmpe = "Premium Member";
                        case 1: tmpe = "Trial Administrator";
                        case 2: tmpe = "Administrator";
                        case 3: tmpe = "Super Administrator";
                        case 4: tmpe = "Advanced Administrator";
                        case 5: tmpe = "Experienced Administrator";
                        case 6: tmpe = "Senior Administrator";
                        case 7: tmpe = "Superme Administrator";
                        case 8: tmpe = "Elite Administrator";
                        case 9: tmpe = "Professional Administrator";
                        case 10: tmpe = "Master Administrator";
                        case 11: tmpe = "Lead Administrator";
                        case 12: tmpe = "Head Administrator";
                        case 13: tmpe = "Server Manager";
                        case 14: tmpe = "Head Manager";
                        case 15: tmpe = "Server Owner";
                }
                format(word, sizeof(word), "["BLUE_E"UoS"WHITE_E"] "YELLOW_E"%s {%06x}%s(%i) "YELLOW_E"has been auto-logged in.", tmpe, pColor[playerid], pName[playerid], playerid);
                SendClientMessageToAll(COLOR_WHITE, word);
        }
        format(word, sizeof(word), "~b~~h~Welcome back, ~r~~h~%s~b~~h~!~n~~b~~h~You are logged in as %s!", pName[playerid], GetPlayerAdminLevelName(playerid));
        InfoTD_MSG(playerid, 5500, word);
}

I don't want this meesage will be shown when the admin will be hidden.
>
Code:

                format(word, sizeof(word), "["BLUE_E"UoS"WHITE_E"] "YELLOW_E"%s {%06x}%s(%i) "YELLOW_E"has been auto-logged in.", tmpe, pColor[playerid], pName[playerid], playerid);
                SendClientMessageToAll(COLOR_WHITE, word);

Here is the variable of the hide system

pInfo[playerid][hidden] == 1 (hidden)
pInfo[playerid][hidden] == 0 (unhidden)

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>