10.02.2013, 22:43
Bueno estaba creando una progressbar y resulta que cuando me voy a conectar no me deja miren estofueloque modifique
Algun Error?
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new playerIP[16];
GetPlayerIp(playerid, playerIP, sizeof(playerIP));
SetPlayerColor(playerid,COLOR_GRAD2);
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Bienvenido a Red Rol" );
if (CheckBan(playerIP) == 1)
{
SetPlayerName(playerid, "BannedPlayer");
SendClientMessage(playerid, COLOR_ORANGE, "SERVER: Lo sentimos, te encuentras baneado de este servidor.");
Kick(playerid);
return 1;
}
TotalConnect++;
resetPlayerVariables(playerid);
MapsRemoveForPlayer(playerid);
ClearMarriage(playerid);
SyncPlayerTime(playerid);
ShowMenuLogin(playerid);
if(Iter_Count(Player) > MaxPlayersConnected)
{
MaxPlayersConnected = Iter_Count(Player);
gettime(MPHour,MPMinute);
getdate(MPYear,MPMonth,MPDay);
}
if(MaxPlayersConnected > 400) MaxPlayersConnected = 400; // Temp good fix
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(!INI_Exist(playername)) // If exists in Y_ini
{
if(doesAccountExist(playername)) // If exists in .ini
{
ConvertAccount(playerid); // Convert Account to y_ini
return 1;
}
}
//sistema orina by Daniel Ruizesto fue lo que modifique
IsPlayerConnected(playerid))
{
orina[playerid] = CreateProgressBar(500.00, 107.00, 106.50, 19.20, -1, 100.0);
SetProgressBarMaxValue(orina[playerid], 100.0);
SetProgressBarValue(orina[playerid], 0);
return 1;
}
SetTimerEx("SafeLogin", 4000, 0, "d", playerid);
return 1;
}