jailing command
#8

Quote:
Originally Posted by 1fret
Посмотреть сообщение
You guys are not getting the issue at hand, the issue is the timer wont count down the players jailed time to release them, thats the issue...

And the enterexittimer freezes players cause i used a mapped prison so it load the objects then unfreeze the players
i got what your problem is and also i give it a fix try that it will work

PHP код:
public PrisonTimer() 

    for(new 
i;i<MAX_PLAYERS;i++) 
    { 
        if(
pInfo[i][Jailed] > 0
        { 
            if(
pInfo[i][JailedTime] == 0
            { 
                
pInfo[i][Jailed] = 0
                
SetPlayerInterior(i0); 
                
SetPlayerVirtualWorld(i0); 
                
SetPlayerFacingAngle(i88.5042); 
                
SetPlayerColor(ierror); 
                    
SetPlayerPos(i1548.8394,-1669.6111,13.5656); 
                
SetCameraBehindPlayer(i); 
                    
SendClientMessage(ijblue" Time Served. Be on your best behaviour now :) ."); 
            } 
            else 
            { 
                new 
string[128]; 
                
pInfo[i][JailedTime] --; 
                    
format(string,sizeof(string),"~r~Jailed Time Left: ~w~%d ~r~seconds"pInfo[i][JailedTime]); 
                
GameTextForPlayer(istring15003); 
            } 
        } 
    } 
    return 
1

actully your problem was that in prisontimer that else state wont ever be called thats why it dosnt work and with this code it will work try that
Reply


Messages In This Thread
jailing command - by 1fret - 17.04.2017, 03:32
Re: jailing command - by sams90 - 17.04.2017, 03:48
Re: jailing command - by 1fret - 17.04.2017, 03:56
Re: jailing command - by sams90 - 17.04.2017, 03:56
Re: jailing command - by 1fret - 17.04.2017, 04:25
Re: jailing command - by khRamin78 - 17.04.2017, 05:48
Re: jailing command - by 1fret - 17.04.2017, 19:39
Re: jailing command - by khRamin78 - 17.04.2017, 19:42
Re: jailing command - by 1fret - 17.04.2017, 19:45

Forum Jump:


Users browsing this thread: 2 Guest(s)