SA-MP Forums Archive
How can I TranPort This to Dialog ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can I TranPort This to Dialog ? (/showthread.php?tid=494044)



How can I TranPort This to Dialog ? - donhu789 - 11.02.2014

pawn Код:
CMD:admins(playerid,params[])
{
    #pragma unused params
    new count = 0;
    new string[128];
    new ChangeColor;
    Inter_SendClientMessage(playerid, green, " ");
    Inter_SendClientMessage(playerid, green, "___________ |- Online Admins -| ___________");
    Inter_SendClientMessage(playerid, green, " ");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            if(AccData[i][Level] >= 1 && AccData[i][Hide] == 0)
            {
                if(AccData[i][Level] > 5)
                {
                    AdmRank = "Professional Admin";
                    ChangeColor = Color_Professional_Admin;
                }
                if(IsPlayerAdmin(i))
                {
                    AdmRank = "RCON Administrator";
                    ChangeColor = Color_RCON_Administrator;
                }
                else
                {
                    switch(AccData[i][Level])
                    {
                        case 1: {
                            AdmRank = "Basic Moderator";
                            ChangeColor = Color_Basic_Moderator;
                        }
                        case 2: {
                            AdmRank = "Moderator";
                            ChangeColor = Color_Moderator;
                        }
                        case 3: {
                            AdmRank = "Master Moderator";
                            ChangeColor = Color_Master_Moderator;
                        }
                        case 4: {
                            AdmRank = "Administrator";
                            ChangeColor = Color_Administrator;
                        }
                        case 5: {
                            AdmRank = "Master Administrator";
                            ChangeColor = Color_Master_Administrator;
                        }
                    }
                }
                switch(AccData[i][OnDuty])
                {
                    case 0: AdmDuty = "Playing!";
                    case 1: AdmDuty = "On Duty!";
                }
                format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",AccData[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
                Inter_SendClientMessage(playerid, ChangeColor, string);
                count++;
            }
        }
    }
    if (count == 0)
    Inter_SendClientMessage(playerid,red,"No admin online in the list");
    Inter_SendClientMessage(playerid, green, " _______________________________________");
    return 1;
}
Can Anyone Make This Become dialog Becoz Is Kind Of Hard And I just Turn to Luxadmin System so is hard to know please help


Re: How can I TranPort This to Dialog ? - ColeMiner - 11.02.2014

We aren't here to do things for you, but help you in doing it yourself. If you still just want someone else to do it for you, you can post here to pay someone:

https://sampforum.blast.hk/showthread.php?tid=447813

However, if you are instead interested in learning, then there are plenty of tutorials and existing scripts we can point you to to get started. Or better yet, just look at the pinned topics in the tutorials forum.


Re: How can I TranPort This to Dialog ? - donhu789 - 13.02.2014

Bumb !


Re: How can I TranPort This to Dialog ? - donhu789 - 14.02.2014

Never Mind Fixed