Admin system combine! Not alot, just need abit of help
#1

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
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)