27.08.2015, 21:25
Код:
if(GetPVarInt(i, "PlayerLogged") == 1 && GetPVarInt(i, "Admin") < 1) { if(GetPVarInt(i, "JailTime") == 0 && GetPlayerInterior(i) == 0) { GetPlayerPos(i, x, y, z); SetPVarFloat(i, "PlayerPos0", x); SetPVarFloat(i, "PlayerPos1", y); SetPVarFloat(i, "PlayerPos2", z); if(GetPVarFloat(i, "PlayerPos0") == GetPVarFloat(i, "PlayerPos3") && GetPVarFloat(i, "PlayerPos1") == GetPVarFloat(i, "PlayerPos4") && GetPVarFloat(i, "PlayerPos2") == GetPVarFloat(i, "PlayerPos5") && GetPVarInt(i, "PayDay") >= 1) { DeletePVar(i, "PayDay"); } SetPVarFloat(i, "PlayerPos3", GetPVarFloat(i, "PlayerPos0")); SetPVarFloat(i, "PlayerPos4", GetPVarFloat(i, "PlayerPos1")); SetPVarFloat(i, "PlayerPos5", GetPVarFloat(i, "PlayerPos2")); } } } return 1; } //============================================// public OneSecondTimer() { new string[128],sendername[MAX_PLAYER_NAME],Float:health,tmphour,tmpminute,tmpsecond,Float:x,Float:y,Float:z; if(CountDown > 0) { CountDown--; format(string, sizeof(string),"~b~%d",CountDown); GameTextForAll(string, 3000, 5); } foreach (Player,i) { switch(GetPVarInt(i, "PlayerLogged")) { case 0: { SetPVarInt(i, "LoginTime", GetPVarInt(i, "LoginTime")+1); if(GetPVarInt(i, "LoginTime") == 300) { SendClientMessage(i,COLOR_LIGHTRED,"You have been kicked for not logging in over (5) minutes."); KickEx(i); return true; } if(GetPVarInt(i, "CameraDelay") != 0) { SetPVarInt(i, "CameraDelay", GetPVarInt(i, "CameraDelay")-1); switch(GetPVarInt(i, "CameraDelay")) { case 0: { switch(GetPVarInt(i, "CameraPos")) { case 1: { SetPVarInt(i, "CameraPos", GetPVarInt(i, "CameraPos")+1);