21.01.2013, 18:27
Hey guys, I'm making an Admin system.
Heres my OnPlayerConnect
And I would like to combine this into it,
Can you please help me! Thanks
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;
}
Код:
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")


