SA-MP Forums Archive
Admin system combine! Not alot, just need abit of help - 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: Admin system combine! Not alot, just need abit of help (/showthread.php?tid=409499)



Admin system combine! Not alot, just need abit of help - Goldino - 21.01.2013

Hey guys, I'm making an Admin system.

Heres my OnPlayerConnect

Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
And I would like to combine this into it,

Код:
    TextDrawShowForPlayer(playerid,Startup0);
    TextDrawShowForPlayer(playerid,Startup1);
    TextDrawShowForPlayer(playerid,Startup2);
    TextDrawShowForPlayer(playerid,Startup3);
    TextDrawShowForPlayer(playerid,Startup4);
    TextDrawShowForPlayer(playerid,Startup5);
    TextDrawShowForPlayer(playerid, randommsg);
    PlayAudioStreamForPlayer(playerid, "http://mixconnect.com/disk2/mp3/1e1a51b28bdc93803dcbf.mp3")
Can you please help me! Thanks


Re: Admin system combine! Not alot, just need abit of help - Hoss - 21.01.2013

Just add
pawn Код:
TextDrawShowForPlayer(playerid,Startup0);
    TextDrawShowForPlayer(playerid,Startup1);
    TextDrawShowForPlayer(playerid,Startup2);
    TextDrawShowForPlayer(playerid,Startup3);
    TextDrawShowForPlayer(playerid,Startup4);
    TextDrawShowForPlayer(playerid,Startup5);
    TextDrawShowForPlayer(playerid, randommsg);
    PlayAudioStreamForPlayer(playerid, "http://mixconnect.com/disk2/mp3/1e1a51b28bdc93803dcbf.mp3");
Above it


Re: Admin system combine! Not alot, just need abit of help - Goldino - 21.01.2013

Quote:
Originally Posted by Hoss
Посмотреть сообщение
Just add
pawn Код:
TextDrawShowForPlayer(playerid,Startup0);
    TextDrawShowForPlayer(playerid,Startup1);
    TextDrawShowForPlayer(playerid,Startup2);
    TextDrawShowForPlayer(playerid,Startup3);
    TextDrawShowForPlayer(playerid,Startup4);
    TextDrawShowForPlayer(playerid,Startup5);
    TextDrawShowForPlayer(playerid, randommsg);
    PlayAudioStreamForPlayer(playerid, "http://mixconnect.com/disk2/mp3/1e1a51b28bdc93803dcbf.mp3");
Above it
Thanks. +REP for you