Hey again! Same Problem!
#2

What happens when second player use this command?

edit:
targetid is always 0. You didnt set it any value. You have to check params and then set targetid value.

I am not sure how do you want this command works, but try this:

PHP код:
CMD:breakcuff(playeridparams[]) 

     if(
PoliceTeam(GetPlayerSkin(playerid)))
        return 
SendClientMessage(playerid, -1"{ff0000}Error: {Ffffff}Only Civilian can use this comamnd."); 
    
     if(
BeginArrested[playerid] == && Civilian(GetPlayerSkin(playerid))) 
     { 
            
KillTimer(BeginArrestedTime[playerid]); 
            
SendClientMessage(playerid, -1"{FF7000}YOU HAVE BEEN ESCAPED FROM ARRESTED!!! RUN RUN !!!!"); 
            
SetPlayerWantedLevel(playerid3); 
            
SetPlayerColor(playeridYELLOW); 
            
GameTextForPlayer(playerid"~Y~ESCAPED FROM ~G~ARRESTED ~P~ RUN BABY!!!"70005); 
            
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE); 
            
BeginArrested[playerid] = 0
      }else{
            
SendClientMessage(playerid, -1"{FF0000}Error: {FFFFFF}You can use this command only while be cuffed or arrested."); 
      } 
    return 
1

Reply


Messages In This Thread
Hey again! Same Problem! - by Thanks - 06.05.2018, 18:21
Re: Hey again! Same Problem! - by Sielly - 06.05.2018, 19:46
Re: Hey again! Same Problem! - by kovac - 06.05.2018, 20:23
Re: Hey again! Same Problem! - by Thanks - 08.05.2018, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)