disable ooc
#7

I Dont script in pawno anymore but you can do something like this

Код:
new Bool:OOC; // <-- or some shit liek that
CMD:ooc(playerid, params[])
{
   if(OOC == true) {
      new sendername[MAX_PLAYER_NAME], string[128];
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFF,"Correct usage: /ooc [text]");
	if(gettime() - 3 < pInfo[playerid][pSpamDrop]) return SendClientMessage(playerid,-1,"*"COL_RED" Wait 3 Seconds to type again!");
	format(string, sizeof(string), ""COL_GREY"" "[GLOBAL CHAT] %s: %s ", sendername, params);
	SendClientMessageToAll(0xFF3300, string);
	return 1;
       }
       else return SendClientMessage(playerid, -1, "OOC disabled");
}

CMD:toggleooc(playerid, params[])
{
   if(Player[playerid][pAdminLevel] >= 1) {
    OOC = !OOC;
   }
   return 1;
}
Reply


Messages In This Thread
disable ooc - by Crystallize - 18.07.2015, 20:40
Re: disable ooc - by Crystallize - 18.07.2015, 21:17
Re: disable ooc - by DarkLored - 18.07.2015, 21:19
Re: disable ooc - by Crystallize - 18.07.2015, 21:26
Re: disable ooc - by DarkLored - 18.07.2015, 21:30
Re: disable ooc - by Crystallize - 18.07.2015, 21:36
Re: disable ooc - by Trucido - 18.07.2015, 22:44
Re: disable ooc - by Crystallize - 18.07.2015, 22:46
Re: disable ooc - by Trucido - 18.07.2015, 22:47
Re: disable ooc - by Crystallize - 19.07.2015, 11:06

Forum Jump:


Users browsing this thread: 3 Guest(s)