20.06.2013, 02:39
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new aname[MAX_PLAYER_NAME];//5000, 0
format(file, sizeof(file), P_CONTAS, aname);
SetPlayerSkin(playerid,dini_Int(file, "Skin"));
PlayerInfo[playerid][Logado] = 0;
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2128.0952,35.1667,39.1944);
SetPlayerCameraPos(playerid,2106.9905,35.4213,35.5485);
SetPlayerCameraLookAt(playerid,2128.0952,35.1667,39.1944);
SetPlayerFacingAngle(playerid, 85.0331);
SetPlayerInterior(playerid, 0);
GetPlayerName(playerid, aname, sizeof(aname));
if(PlayerInfo[playerid][Logado] == 0)
{
dini_Exists DOF2_FileExists
{
format(STRX, sizeof(STRX), "Usuбrio: %s\nInsira uma senha:", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Registrar", STRX, "Registrar", "Sair");
SetPlayerSkin(playerid, 4);
}
dini_Exists DOF2_FileExists
{
format(STRX, sizeof(STRX), "Usuбrio: %s\nInsira sua senha:", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logar", STRX, "Logar", "Sair");
}
}
else {
SendClientMessage(playerid, Vermelho, "| KICK | Vocк foi kickado(a) por nгo se registrar / logar");
Kick(playerid);
}
return 1;
}