/arrest
#4

Here's a simple example.
PHP код:
CMD:arrest(playeridparams[]) {
    new 
IDtime;
    if(
pInfo[playerid][Faction] == 1) {
        if(
IsPlayerInRangeOfPoint(playerid9.049.6361,-201.6498,-5.7678 )) {           
            if(!
sscanf(params,"ii"IDtime)) {
                
SetPlayerPos(ID264.4282,82.2066,1001.0391);
                
SetPlayerFacingAngle(ID344.0042);
                
SendClientMessage(ID, -1"{FF0000}You got arrested !");
                
SendClientMessage(playerid, -1"{0066CC}[POLICE]: {15FF00}You arrested specified player !");
                
SetTimerEx("releasePlayer",time*60false"d",id);
            } else {
                
SendClientMessage(playerid,-1,"{FF0000}USAGE: {15FF00}/Arrest [ID] [Time]");
                return 
1;
            }
        } 
    }
    return 
1;
}
releasePlayer() {
        
//releasehere
    
return 1;

Reply


Messages In This Thread
/arrest - by CSLangdale - 16.04.2016, 14:40
Re: /arrest - by Prokill911 - 16.04.2016, 16:16
Re: /arrest - by BiosMarcel - 16.04.2016, 16:16
Re: /arrest - by Prokill911 - 16.04.2016, 16:25
Re: /arrest - by BiosMarcel - 16.04.2016, 16:27
Re: /arrest - by Prokill911 - 16.04.2016, 16:28

Forum Jump:


Users browsing this thread: 2 Guest(s)