01.05.2014, 18:24
For admins i need /oocoff and /oocon
For Players i need /ooc
Please can someone make this?
I will give +rep!
For Players i need /ooc
Please can someone make this?
I will give +rep!

// Add to the top of the script
new bool:oochat;
// This is ZCMD
CMD:enableooc(playerid)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an admin to use this."); // Change it to your admin variable
if(oochat == 0)
{
oochat = 1;
SendClientMessage(playerid, -1, "Out of character chat enabled.");
}
else if(oochat == 1)
{
oochat = 0;
SendClientMessage(playerid, -1, "Out of character chat disabled.");
}
return 1;
}
CMD:ooc(playerid, params[])
{
if(oochat == 1)
{
// It's allowed.
// Do what ever you want.
}
else if(oochat == 0)
{
return SendClientMessage(playerid, -1, "Out of character chat is currently disabled.");
}
return 1;
}