08.02.2014, 18:24
pawn Код:
public OnPlayerConnect(playerid)
{
new string[128];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
format(string,sizeof string,"{00FF00}[ENTROU] {FFFFFF}%s {00FF00}({FFFFFF}ID: %d{00FF00}) entrou no servidor. Bem-vindo!", string, playerid);
SendClientMessageToAll(0xFFFFFFAA, string);
PlayAudioStreamForPlayer(playerid, "http://www.in2unemusic.com/featuredartists/alina/whenyouleave.mp3");
for(new a = 0; a < 20; a++)
SendClientMessage(playerid, 0x33CCFFAA, " ");
SendClientMessage(playerid, -1, "{FF0000}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid, -1, "{FF0000}~{00FF00} © BRASIL MATA MATA MUNDO DOS ASSASSINOS ® - 0.3x {FF0000}");
SendClientMessage(playerid, -1, "{FF0000}~ ");
SendClientMessage(playerid, -1, "{FF0000}~{00FF00} Bem-vindo ao servidor! {FF0000}/admins {00FF00}- {FF0000}/comandos {00FF00}- {FF0000}/report");
SendClientMessage(playerid, -1, "{FF0000}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
InterpolateCameraPos(playerid, -1780.9915771484,1488.7635498047,136.2244720459, -2367.8391113281,-198.36149597168,110.59140777588, 50000, CAMERA_MOVE);
TogglePlayerSpectating(playerid, 1);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Logando",""COL_WHITE"Bem-vindo de volta!\nDigite sua senha para logar em sua conta!","Logar","Sair");
}
else ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registrando..",""COL_WHITE"Bem-vindo ao servidor!\nDigite uma senha para criar sua conta em nosso banco de dados.","Registrar","Sair");
return 1;
}