[Help]How do i make a jail?
#9

You put this on your command and you done

PHP код:
if(pJail[playerid] > 0)  return SendClientMessage(playerid,-1,"You are in jail, you can not use this command"); 
Dont' make forward setplayerunjail like my model, i write if you dont't haved

put this on your SetPlayerUnjail

PHP код:

  
for(new i;i<MAX_PLAYERS;i++) 
         if(
Jailed[i] > 0)  
            {  
                if(
JailTime[i] > 0)                     JailTime[i]--;  
                if(
JailTime[i] <= 1)  
                {  
                    
JailTime[i] = 0;  
                    
Jailed[i] = 0
                    
SetPlayerInterior(i0);  
                    
SetPlayerPos(i,x,y,z);  
                    
SendClientMessage(iCOLOR_GRAD1,"   Jail is over.");  
                    
format(stringsizeof(string), "~g~You are ~w~FREE!");  
                    
GameTextForPlayer(istring50003);  
                }  
            }  
             
        }  
       return 
1
YOUR TIMER NEED TO BE FOR 1000 MILISECONDS NOT 60000
Reply


Messages In This Thread
[Help]How do i make a jail? - by TheKnown - 18.09.2015, 18:09
Re: [Help]How do i make a jail? - by Mister0 - 18.09.2015, 18:19
Re: [Help]How do i make a jail? - by jlalt - 18.09.2015, 18:22
Re: [Help]How do i make a jail? - by TheKnown - 18.09.2015, 18:56
Re: [Help]How do i make a jail? - by Mister0 - 18.09.2015, 19:06
Re: [Help]How do i make a jail? - by TheKnown - 18.09.2015, 19:19
Re: [Help]How do i make a jail? - by JordanZaundd - 18.09.2015, 19:26
Re: [Help]How do i make a jail? - by TheKnown - 18.09.2015, 19:27
Re: [Help]How do i make a jail? - by Mister0 - 18.09.2015, 19:27
Re: [Help]How do i make a jail? - by TheKnown - 18.09.2015, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)