19.05.2012, 17:47
PHP код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TextdrawConnect0); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect1); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect2); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect3); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect4); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect5); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect6); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect7); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect8); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect9); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect10); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect11); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect12); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect13); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect14); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect15); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect16); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect17); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect18); // Connect Textdraw
TextDrawShowForPlayer(playerid, TextdrawConnect19); // Connect Textdraw
TextDrawShowForPlayer(playerid, Credit); // Credits
new name[MAX_PLAYER_NAME]; // Player Name Textdraw
GetPlayerName(playerid,name,MAX_PLAYER_NAME);// Player Name Textdraw
PlayerN=TextDrawCreate(115,416,name);// Player Name Textdraw
TextDrawShowForPlayer(playerid, PlayerN);// Player Name Textdraw
TextDrawColor(PlayerN,0xFFFFFFAA);// Player Name Textdraw
TextDrawFont(PlayerN,3);// Player Name Textdraw
TextDrawSetShadow(PlayerN,1);// Player Name Textdraw
pLogged[playerid] = 0;
#if defined AUTOLOGIN
new tmpIP[16];
GetPlayerIp(playerid,tmpIP,sizeof(tmpIP)); //Getting IP
#endif
if(fexist(PlayerPath(playerid)))
{
INI_ParseFile(PlayerPath(playerid), "UserDataLoad_%s", .bExtra = true, .extra = playerid); //Calling loading callback
#if defined AUTOLOGIN
if(strcmp(tmpIP,pIP[playerid],true) == 0)//Checking if the IPs match
{
pLogged[playerid] = 1;
SetPlayerScore(playerid,pInfo[playerid][Score]);
GivePlayerMoney(playerid,pInfo[playerid][Cash]);
SendClientMessage(playerid,lime,"You've been auto-logged in. [IP match]");
return 1;
}
#endif
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Please enter your password below.","Login","Leave");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register","Please register by entering a password below.","Register","Leave");
}
if(dini_Exists(MsgFile()))
{
new string[128];
format(string,128,"Server Message: {ffffff}%s",dini_Get(MsgFile(),"MSG"));
SendClientMessage(playerid,0x00ff00ff,string);
return 1;
}
PlayAudioStreamForPlayer(playerid,"http://k005.kiwi6.com/hotlink/0hn592rrdn/Alex_Mica_Dalinda_Official_Radio_Edit.mp3");
Radio[playerid] = false;
return 1;
}
A. The music not playing. (WORKED before three day's)
B. The server message doesn't shown up.
Thanks!