24.10.2017, 21:03
Quote:
here's the whole command
CMD:arrest(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid,5,1525.4839,-1677.7625,5.8906))return SendClientMessage(playerid,adminrot,"Du bist nicht am Arrest Punkt."); new otherplayerid, grund[128], Zeit; if(sscanf(params, "uis[128]",otherplayerid,Zeit,grund))return SendClientMessage(playerid,adminrot,"INFO: /arrest [id][Zeit in Millisekunden][grund]"); if(GetPlayerWantedLevel(otherplayerid) == 0) { SendClientMessage(playerid,adminrot,"Der Spieler hat keine Wanteds."); return 1; } if(!IsPlayerConnected(otherplayerid)) { SendClientMessage(playerid,rot,"Der Spieler ist nicht online!"); return 1; } else { SetPlayerPos(otherplayerid,263.8904,77.4725,1001.0 391); SetPlayerInterior(otherplayerid, 6); sInfo[playerid][payday] += 1500; SetPlayerWantedLevel(otherplayerid,0); SetTimerEx("unarrest",Zeit,false,"i",otherplayerid ); for(new i=0; i<MAX_PLAYERS; i++) if(isPlayerInFrakt(i, 2)) { if(onlspdduty[playerid] == false)return SCM(playerid,adminrot,"Du bist nicht im Dienst."); new string[128]; format(string,sizeof(string),"HQ: Der Spieler %s[%i] wurde festgenommen. Grund: %s",sInfo[otherplayerid][rpname],otherplayerid,grund); SendClientMessage(i,hqinfo,string); } } return 1; } |