How to disable commands in jail?
#6

Quote:
Originally Posted by [..MonTaNa..]
Посмотреть сообщение
pawn Код:
// Put this somewhere in your jail CMD.
SetPVarInt(playerid, "Caged", = 1);
pawn Код:
// Put this in each teleport CMD.
if(GetPVarInt(playerid, "Caged") == 1) return SendClientMessage(playerid, -1, "You cannot use this command when you're jailed.");
I was just going to post that since it's in my script.
But yea, put that in your script and it'll work since I use the same code.
Reply


Messages In This Thread
How to disable commands in jail? - by Audi_Quattrix - 19.01.2014, 19:19
Re: How to disable commands in jail? - by AchievementMaster360 - 19.01.2014, 19:21
Re: How to disable commands in jail? - by Audi_Quattrix - 19.01.2014, 19:24
Re: How to disable commands in jail? - by Audi_Quattrix - 19.01.2014, 19:30
Re: How to disable commands in jail? - by [..MonTaNa..] - 19.01.2014, 20:18
Re: How to disable commands in jail? - by RedWingz - 19.01.2014, 20:21
Re: How to disable commands in jail? - by [TMS]Legena - 19.01.2014, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)