ZCMD Command Restriction
#1

i wanna make that if a player is in a dm or jailed "if(PlayerInfo[playerid][pDM] == 1)" he cant use any commands but in dm i wanna make the only command that he can use is /exitdm . Also i wanna make that if he types an invalid command it shows a specific sentence "ClientMessage" i've tried doing them on my own but i found that the only way to make the dm and jail thing is to put this line in every command i make
Code:
if(PlayerInfo[playerid][pDM] == 1)
SendClientMessage(playerid,0xFFFFFF,"You cant use commands in the DM Zone/Jail");
but i have alot of commands so is there a shorter way ??
Reply


Messages In This Thread
ZCMD Command Restriction - by YoussefHammad - 10.11.2015, 21:48
Re: ZCMD Command Restriction - by Jefff - 10.11.2015, 22:00
Re: ZCMD Command Restriction - by YoussefHammad - 10.11.2015, 22:03
Re: ZCMD Command Restriction - by Jefff - 10.11.2015, 22:07
Re: ZCMD Command Restriction - by YoussefHammad - 10.11.2015, 22:10
Re : ZCMD Command Restriction - by Dutheil - 11.11.2015, 00:54
Re: Re : ZCMD Command Restriction - by YoussefHammad - 11.11.2015, 01:01
Re : ZCMD Command Restriction - by Dutheil - 11.11.2015, 01:04
Re: Re : ZCMD Command Restriction - by YoussefHammad - 11.11.2015, 01:23
Re: Re : ZCMD Command Restriction - by PrO.GameR - 11.11.2015, 07:04

Forum Jump:


Users browsing this thread: 5 Guest(s)