19.12.2013, 16:16
Where i can put On Player Connect?
Код:
public OnPlayerConnect(playerid) { SendDeathMessage(INVALID_PLAYER_ID,playerid,200); ClassChosen[playerid] = 0; PlayerPlaySound(playerid, 1185, -1753.6743,885.2703,295.8750); if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit"); TogglePlayerSpectating(playerid, true); PAccount[playerid]=1; } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit"); PAccount[playerid]=0; } return 1; }