Prison disable TELES [+REP]
#3

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(killerid != INVALID_PLAYER_ID)
  {
         SetPlayerPos(killerid,1760.0499,-1538.4115,9.3113);
         SetPVarInt(killerid,"Jailed",true);
         //You can set a timer here too , to release the player from jail
  }
}

public OnPlayerCommandText(playerid,cmdtext[])
{
if(GetPVarInt(playerid,"Jailed")) return SendClientMessage(playerid,0xFFFFFFFF," -Error- You cant use commands in jail");
}
//Edit: too late^^
Reply


Messages In This Thread
Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 13:43
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 13:50
Re: Prison disable TELES [+REP] - by HuSs3n - 05.05.2012, 13:51
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 13:55
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 13:56
Re: Prison disable TELES [+REP] - by niels44 - 05.05.2012, 13:59
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:08
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:11
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 14:14
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)