Jump to content
  • 0

pomoc zasekávání odpoctu ve vezeni


chefmaster

Dotaz

zdravím tento systém pouzivam uz prez rok a posledni dobou chci z VP udela "poradny mod" a tak chci vyloucit tuhle chybu

 

 

kdyz je vetsi uprime nebo trosku lagy obcas e zasekne odpocet ve vezeni ze to neodpocitava vteriny.....

 

 

kod je takto

 

//------------------------------------------------------------------------------
forward SecTimer();
public SecTimer()
{
   new string[128];
   for(new i=0; i    {
       SetPlayerScore(i, GetPlayerMoney(i));
       if(JailTime[i] > 0)
       {
           format(string,250, "~r~Konec trestu za ~w~%d~r~s",JailTime[i]);
           GameTextForPlayer(i,string,2000,3);
           JailTime[i]--;
       }
       else if(JailTime[i] == 0){
           format(string, sizeof(string), "Hráč %s byl po vykonání trestu propuštěn z vězení!", PlayerName(i));
           SendClientMessageToAll(COLOR_BLUE,string);
           JailTime[i] = -1;
           SetPlayerWantedLevel(i,0);
           SetPlayerInterior(i,0);
           SetPlayerPos(i,1586.2344,-1626.0962,13.3828);
           SetPlayerFacingAngle(i,90.6477);
           gTeam[i] = 0;
           SetPlayerColor(i,COLOR_LIGHTYELLOW);
       }
   }
return 1;
}

 

 

 

máte podobný zkušenosti? proste se zasekne odpocet, obcas pomuze recconect hrace nebo se musi restartnout server aby to pomohlo.... prosím pomozte :)

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...