10.11.2015, 21:48
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
but i have alot of commands so is there a shorter way ??
Code:
if(PlayerInfo[playerid][pDM] == 1) SendClientMessage(playerid,0xFFFFFF,"You cant use commands in the DM Zone/Jail");