i need whent player login failed dialog
#1

PHP код:
public OnPlayerConnect(playerid)
{
    if (
udb_Exists(PlayerName2(playerid)))
    {
      if(
PlayerInfo[playerid][LoggedIn] == 0)
      {
          new 
string[500];
          
format(stringsizeof(string),""cwhite"Welcome Back"cred"%s "cwhite" To Call Of Duty Wolrd At War\nYour Account Is Already Registered!\nEnter Your Password Below To Load Your Status\n(Score,Cash,rank,Kills,etc)"PlayerName2(playerid));
          
ShowPlayerDialog(playerid125DIALOG_STYLE_PASSWORD"Login Account",string,"Login","Kick");
      }
    }
    if (!
udb_Exists(PlayerName2(playerid)))
    {
      if(
PlayerInfo[playerid][Registered] == 0)
      {
          new 
string[200];
          
format(stringsizeof(string),""cwhite"Welcome "cred"%s "cwhite"To Call Of Duty Wolrd At War\nYour Account is not Registered!\nEnter your Password Below To Save Your Status\n(Score,Cash,Ranks,Kill,etc)"PlayerName2(playerid));
          
ShowPlayerDialog(playerid126DIALOG_STYLE_PASSWORD"Register Account",string,"Register","Kick");
      }
    }
    if(
PlayerInfo[playerid][LoggedIn] == 1)
    {
        new 
pname[128];
        new 
file[128];
        
GetPlayerName(playeridpnamesizeof(pname));
        
format(filesizeof(file), savefolder,pname);
        if(!
dini_Exists(file))
        {
            
dini_Create(file);
            
dini_IntSet(file"Score"0);
            
dini_IntSet(file"Money"0);
            
SetPlayerScore(playeriddini_Int(file"Score"));
            
SetPlayerMoney(playeriddini_Int(file"Money"));
        }
        else
        {
            
SetPlayerScore(playeriddini_Int(file"Score"));
            
SetPlayerMoney(playeriddini_Int(file"Money"));
        }
    }
    
//-----
    
SetPlayerWorldBounds(playerid9999.9, -9999.99999.9, -9999.9 );
    
//-----Music
     
PlayAudioStreamForPlayer(playerid,"http://files.mboxdrive.com/100000435279790/Untitled.mp3");
    
//-----
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
SendClientMessage(playerid, -1," ");
    
//------
    
new name[MAX_PLAYER_NAME], string1[500+MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(string1sizeof(string1), "{FF0000}»%s« [ID%d] Has Joined Call Of Duty-World At War Server"nameplayerid);
    
SendClientMessageToAll(greystring1);
    
//-------
    //-------
    
LastPm[playerid] = -1;
    
Spectating[playerid] = 0;
    
FirstSpawn[playerid] = 1;
    
rconAttempts[playerid] = 0;
    
    
IsPlayerCapturing[playerid][SNAKE] = 0;
    
IsPlayerCapturing[playerid][BAY] = 0;
    
IsPlayerCapturing[playerid][BIG] = 0;
    
IsPlayerCapturing[playerid][ARMY] = 0;
    
IsPlayerCapturing[playerid][PETROL] = 0;
    
IsPlayerCapturing[playerid][OIL] = 0;
    
IsPlayerCapturing[playerid][DESERT] = 0;
    
IsPlayerCapturing[playerid][QUARRY] = 0;
    
IsPlayerCapturing[playerid][GUEST] = 0;
    
IsPlayerCapturing[playerid][EAR] = 0;
    
    
CountVar[playerid][SNAKE] = 25;
    
CountVar[playerid][BAY] = 25;
    
CountVar[playerid][BIG] = 25;
    
CountVar[playerid][PETROL] = 25;
    
CountVar[playerid][ARMY] = 25;
    
CountVar[playerid][DESERT] = 25;
    
CountVar[playerid][OIL] = 25;
    
CountVar[playerid][QUARRY] = 25;
    
CountVar[playerid][GUEST] = 25;
    
CountVar[playerid][EAR] = 25;
    
    
DND[playerid] = 0
I want to make like this wait !!!!


http://imageshack.us/photo/my-images/833/5mrj.png/


check it on SendClientMSG how i do it :\
Reply
#2

BUMB! No One Anyone ? No One CAn Help ? O_o
Reply
#3

its been 12 minutes since you made your thread, and you gonna bump already?
Reply
#4

lol :\ I realy want to Help Becuz I Needed Realy
Reply
#5

Becuz my Server Been Off for 3 Days i just needed that Only Script :\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)