[FilterScript] [FS]~Jail Command~
#1

Jail Command Updated

Command

/jail playerid
/unjail playerid

What it Make?
If you type /jail (playerid) it will jail that player.(have to be rcon admin)
When you want to unjail him make /unjail playerid


Download
http://pastebin.com/f3e278e93
AMX --> http://solidfiles.com/d/1IHd
pwn --> http://solidfiles.com/d/miW4

If you have problems with it.. tell me.. i try to help you
Reply
#2

Teleport Command
Reply
#3

Cant people abuse this command ? or is it for Rcon only ?
Cause else its a bad FS :P cause people will put eachother in jail.

[Doppeyy
Reply
#4

Im beginner so.. how i make it for RCON only ??
Reply
#5

pawn Code:
if(PlayerIsAdmin == 1)
[Doppeyy
Reply
#6

Where here i put that .. it says = error 017: undefined symbol "PlayerIsAdmin"

Code:
if(PlayerIsAdmin == 1)
Reply
#7

pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5))
{
  if(IsPlayerAdmin == 1)
  {
  if(!strlen(cmdtext[6]))
  {
    SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
    return 1;
  }
  new ID = strval(cmdtext[6]);
  new strv[170];
  if(IsPlayerConnected(ID))
  {

    format(strv, 170, "~ You have been jailed");
    SendClientMessage(ID,COLOR_ORANGE, strv);
    SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
    SetPlayerInterior(ID, 6);
  }
  }
  else
  {
    SendClientMessage(playerid,COLOR_RED,"You have to be admin to use this command!!");
  }
  return 1;

}
[Doppeyy
Reply
#8

Doppeyy you were be4 me! FUUU



pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5))
{
  if(PlayerIsAdmin == 1)
  {
    if(!strlen(cmdtext[6]))
    {
      SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
      return 1;
    }
    new ID = strval(cmdtext[6]);
    new strv[170];
    if(IsPlayerConnected(ID))
    {
      format(strv, 170, "~ You have been jailed");
      SendClientMessage(ID,COLOR_ORANGE, strv);
      SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
      SetPlayerInterior(ID, 6);
    }
  }
  return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!");
}
That should do it
Reply
#9

Quote:
Originally Posted by Niixie
Doppeyy you were be4 me! FUUU



pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5))
{
  if(PlayerIsAdmin == 1)
  {
    if(!strlen(cmdtext[6]))
    {
      SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
      return 1;
    }
    new ID = strval(cmdtext[6]);
    new strv[170];
    if(IsPlayerConnected(ID))
    {
      format(strv, 170, "~ You have been jailed");
      SendClientMessage(ID,COLOR_ORANGE, strv);
      SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
      SetPlayerInterior(ID, 6);
    }
  }
  return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!");
}
That should do it
And how is that one better then the one i posted ?

[Doppeyy
Reply
#10

error 076: syntax error in the expression, or invalid function call -_-
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)