ooc help
#2

Add this on top:
PHP код:
new bool:OOCDisabled
/disableooc command
PHP код:
CMD:disableooc(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOL_WHITE"You are not an admin.");
    
OOCDisabled=true;
    return 
1;

/enableooc command
PHP код:
CMD:enableooc(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOL_WHITE"You are not an admin.");
    
OOCDisabled=false;
    return 
1;

/ooc command
PHP код:
CMD:ooc(playeridparams[])
{
    if(
OOCDisabled) return SendClientMessage(playeridCOL_WHITE"OOC Chat is currently disabled.");
    new 
sendername[MAX_PLAYER_NAME], string[56];
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
isnull(params)) return SendClientMessage(playerid,-1"*"COL_WHITE" /ooc [text] or /o [text]");
    
format(stringsizeof(string), "[GLOBAL CHAT]%s: %s"sendernameparams);
    
SendClientMessageToAll(-1string);
    return 
1;

Reply


Messages In This Thread
ooc help - by Hybris - 13.03.2015, 15:55
Re: ooc help - by ATGOggy - 13.03.2015, 15:59
Re: ooc help - by Hybris - 13.03.2015, 16:18
Re: ooc help - by ReD_HunTeR - 13.03.2015, 16:30
Re: ooc help - by TheLegend1 - 13.03.2015, 16:32
Re: ooc help - by CalvinC - 13.03.2015, 16:33
Re: ooc help - by Hybris - 13.03.2015, 17:42
Re: ooc help - by Hybris - 13.03.2015, 17:47
Re: ooc help - by ATGOggy - 13.03.2015, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)