18.01.2015, 15:55
i've Timer
pawn Код:
public SecondEvents()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(PlayerInfo[i][pClassSelection] > 0) PlayerInfo[i][pClassSelection] --;
{
if(PlayerInfo[i][pClassSelection] == 1)
{
SetPlayerPosEx(i,1523.984619, -43.216495, 1002.130981, 179.918426,2,2);
SetPlayerCameraPos(i,1523.980102, -47.354228, 1003.130981);
SetPlayerCameraLookAt(i,1523.984619, -43.216495, 1002.130981);
if(fexist(UserPath(i)) && !PlayerInfo[i][pLogged])
{
INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra = true, .extra = i);
new LoginString[256];
format(LoginString, sizeof(LoginString), "{0835C7}Cruel World Cops And Robbers\n \n{146AC7}Player Login\n \n{FFFFFF}This Nick, {146AC7}%s, {FFFFFF}is Rgistered.\nIf This Is Not Your Account, Please Quit And Change Your Name.\n \nPlease {D6D631}Enter Your Password {FFFFFF}To Login:",PlayerInfo[i][pName],i);
ShowPlayerDialog(i, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD , "CnR Login", LoginString, "Login", "Cancel");
}
}
}
}
}
return 1;
}