disable ooc
#8

Quote:
Originally Posted by Trucido
Посмотреть сообщение
I Dont script in pawno anymore but you can do something like this

[code]
new Bool:OOC; // <-- or some shit liek that
CMDoc(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;
}

}
Thank you friend , but i've already tried smth like this didnt work so I deleted the code :/
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: 2 Guest(s)