/arrest
#2

pawn Код:
CMD:arrest(playerid, params[])
{
    if(PlayerInfo[playerid][PoliceMan] == >1)
    {
          new pID;
          if(sscanf(params, "u", pID))return SendClientMessage(playerid, -1, "Syntax:/arrest [playerid]");
          if(pID == INVALID_PLAYER_ID)return SendClientMessage(playerid, -1, "Player Not Found.");
          if(GetPlayerWantedLevel(pID) >= 1)return SendClientMessage(playerid, -1, "Play has not an Wanted Level");
          SetPlayerPos(pID, x, y, z); //The Cordinates x, y, z replace with your jail pos.
          SetPlayerWantedLevel(pID, 0);
          GameTextForPlayer(pID, "You are jailed for 10 seconds.", 3000, 3); //Replace 10 seconds with you time.
          SetTimerEx("Jail", 10000, "i", pID);  //Seting an Timer for Jail 10sec.= 10000milisec.
          return 1;
}

forward Jail(pID);
public Jail(pID)
{
         GameTextForPlayer(pID, "You are not jailed any more", 3000, 3);
         SetPlayerPos(pID, 0, 0, 0);
         return 1;
}
//NOT TESTED YET.
Reply


Messages In This Thread
/arrest - by AnonScripter - 13.01.2014, 13:01
Re: /arrest - by MatriXgaMer - 13.01.2014, 13:17
Re: /arrest - by Hansrutger - 13.01.2014, 13:27
Re: /arrest - by MatriXgaMer - 13.01.2014, 13:28
Re: /arrest - by Hansrutger - 13.01.2014, 13:38
Re: /arrest - by AnonScripter - 13.01.2014, 15:26
Re: /arrest - by Lyksus - 13.01.2014, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)