Hello, I Need Help.
#1

Hello!

I got jail command but you can escape using /cs (class selection)


Is there anyway to make that i cannot use commands in jail?

So it will say "You Can't Use Command While You Are Jailed"

Or Something like that.

Thanks
Reply
#2

You can do this, don't forget to change the variable Jailed to the one you use.
INFO: This will only work if you use zcmd, I suppose you do.

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(
Jailed[playerid] == 1) return SendClientMessage(playerid0x2D4B1FFF"You can't use any command while in jail.");
    return 
1;

Reply
#3

What do you mean variable?
Reply
#4

There must be a variable or pvar in your script to check if some player is in jail or not. That's up to you to find though.
Reply
#5

Yea Use variable called Jailed Or Whatever When You JAil a persone MAke it 1 like this Jalied = 1 And Add that code of ThePhenix
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)