Use command while in Jail
#1

Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
	if(pInfo[playerid][Jailed] == 1 && pInfo[playerid][pLevel] == 0)
	{
    	SendClientMessage(playerid,red,"You can not use commands in Jail");
    	return 0;
	}
Hi guys. Can you please help me how to use some commands while in jail?

Let say I want to use /pm /a /o and some other commands.

But this one doesn't let me do any commands. Only talk from chat.
Reply
#2

You can simply, put this code inside your /pm, /a, /o command

pawn Код:
if(pInfo[playerid][Jailed] == 1 && pInfo[playerid][pLevel] == 0)
    return SendClientMessage(playerid,red,"You can not use commands in Jail");
Reply
#3

Quote:
Originally Posted by pds2012
Посмотреть сообщение
You can simply, put this code inside your /pm, /a, /o command

pawn Код:
if(pInfo[playerid][Jailed] == 1 && pInfo[playerid][pLevel] == 0)
    return SendClientMessage(playerid,red,"You can not use commands in Jail");
But I want this /pm, /a, /o to be allowed while in jailed. Is there a script or variable to allow this commands while on jail?

EDIT: oh wait is the script you gave will allowed those commands while in jail?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)