ooc help
#5

PHP код:
COMMAND:ooc(playerid)
{
if(
oocenableSendClientInfo(playerid"OOC is on!");
    new 
tmp[4];
    if(
sscanf(params"s"tmp)) return SCP(playerid"[on/off]");
    if(
strcmp(tmp,"on",true)==0)
    {
        
oocenable=1;
        
SendClientMessageToAll(COLOR_GREENYELLOW,"[SERVER] OOC Chat enabled");
        
format(iStrsizeof(iStr), "3..: Global OOC enabled by %s :.."PlayerName(playerid));
        
iEcho(iStr);
    }
    else if(
strcmp(tmp,"off",true)==0)
    {
        
oocenable=0;
        
SendClientMessageToAll(COLOR_GREENYELLOW,"[SERVER] OOC Chat disabled");
        
format(iStrsizeof(iStr), "3..: Global OOC disabled by %s :.."PlayerName(playerid));
        
iEcho(iStr);
    }
    else return 
SCP(playerid"[on/off]");
    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: 2 Guest(s)