Use command while in Jail - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Use command while in Jail (
/showthread.php?tid=469306)
Use command while in Jail -
kbalor - 12.10.2013
Код:
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.
Re: Use command while in Jail - Patrick - 12.10.2013
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");
Re: Use command while in Jail -
kbalor - 12.10.2013
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?