Arrest Command
#2

wait, I remember that post, someone asked for the exactly same code... it was u?

anyway.
Remove this code.
PHP код:
                new Random random(sizeof(RandomJailSpawns));
                
SetPlayerPos(targetidRandomJailSpawns[Random][0], RandomJailSpawns[Random][1], RandomJailSpawns[Random][2]);
                
SetPlayerFacingAngle(targetidRandomJailSpawns[Random][2]);
                
SetPlayerInterior(targetid3);
                
pJailTimerID[targetid] = SetTimerEx("pJailTimer"1000true"i"targetid);
                
pJailCount[targetid] = 80 random(100);
                
ResetPlayerWeapons(targetid);
                
SetPlayerColor(targetidCOLOR_WHITE);
                
SetPlayerWantedLevel(targetid,0);
                
SetPVarInt(playerid,"ArTime",GetTickCount()+5000); 
change with it.
PHP код:
SetTimerEx("JailPlayer",5000,0,"i",playerid);// making 5 sec timer for jail 
create new forward func, from the deleted code.
PHP код:
forward JailPlayer(targetid);
public 
JailPlayer(targetid)
{
    new 
Random random(sizeof(RandomJailSpawns));
    
SetPlayerPos(targetidRandomJailSpawns[Random][0], RandomJailSpawns[Random][1], 
    
RandomJailSpawns[Random][2]);
    
SetPlayerFacingAngle(targetidRandomJailSpawns[Random][2]);
    
SetPlayerInterior(targetid3);
    
pJailTimerID[targetid] = SetTimerEx("pJailTimer"1000true"i"targetid);
    
pJailCount[targetid] = 80 random(100);
    
ResetPlayerWeapons(targetid);
    
SetPlayerColor(targetidCOLOR_WHITE);
    
SetPlayerWantedLevel(targetid,0);
    
SetPVarInt(playerid,"ArTime",GetTickCount()+5000);
    return 
1;

Reply


Messages In This Thread
Arrest Command - by RedRex - 26.04.2018, 21:33
Re: Arrest Command - by Mugala - 27.04.2018, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)