No cmd
#1

How to make something like jailed user cannot use any cmd like /kill /go or any tele cmd
Reply
#2

Make a global variable which has two values; true and false. [new bool:varname]

For more help: https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
Reply
#3

Quote:
Originally Posted by ACI
Посмотреть сообщение
Make a global variable which has two values; true and false. [new bool:varname]

For more help: https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
Oh come on tell which define i have to make false
Reply
#4

Make a new variable like this:
pawn Код:
new jailed[MAX_PLAYERS];
And then add this to your command /kill, /go, /teleport...:
pawn Код:
if(jailed[playerid] == 1)return SendClientMessage(playerid, -1, "You can't use this command, when you are jailed!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)