disable ooc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: disable ooc (
/showthread.php?tid=582198)
disable ooc -
Crystallize - 18.07.2015
Fixed.
Re: disable ooc -
Crystallize - 18.07.2015
Reported to the authorities for kid actings and directly offtopic posts in main sections , enjoy your upcoming infractions guys I really love you<3
Re: disable ooc -
DarkLored - 18.07.2015
Create a variable and when you use the command make it set it to 1 then in the /ooc make an if statement that checks if it is set to 1 if it is then simply send a message and return a value.
P.S. try making your own code instead of requesting people to create ones for you.
Re: disable ooc -
Crystallize - 18.07.2015
Quote:
Originally Posted by DarkLored
Create a variable and when you use the command make it set it to 1 then in the /ooc make an if statement that checks if it is set to 1 if it is then simply send a message and return a value.
P.S. try making your own code instead of requesting people to create ones for you.
|
Thanks for the advice mate , but as I said I tried but couldn't ....
Re: disable ooc -
DarkLored - 18.07.2015
Quote:
Originally Posted by Wizzard2H
Thanks for the advice mate , but as I said I tried but couldn't ....
|
Then you can request someone to make one for you in here:
https://sampforum.blast.hk/showthread.php?tid=447813
This is a scripting help section not a request section, most of your posts here consists of requests of scripts and you never learn anything from the code we give you, you just copy paste it if you really want to have scripts either learn them or download filterscripts and watch tutorials. You can always use the samp wiki too.
Re: disable ooc -
Crystallize - 18.07.2015
Quote:
Originally Posted by DarkLored
Then you can request someone to make one for you in here: https://sampforum.blast.hk/showthread.php?tid=447813
This is a scripting help section not a request section, most of your posts here consists of requests of scripts and you never learn anything from the code we give you, you just copy paste it if you really want to have scripts either learn them or download filterscripts and watch tutorials. You can always use the samp wiki too.
|
It's "Scripting help" section , which is supposed you to help me in any aspect not only giving me advices but okay thanks again for your reply , i'm still waiting other replies.
As you've noticed i've posted my code....
Re: disable ooc -
Trucido - 18.07.2015
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;
}
Re: disable ooc -
Crystallize - 18.07.2015
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
CMD  oc(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 :/
Re: disable ooc -
Trucido - 18.07.2015
Quote:
Originally Posted by Wizzard2H
Thank you friend , but i've already tried smth like this didnt work so I deleted the code :/
|
yeah lmao i just updated it try that, it should work
Re: disable ooc -
Crystallize - 19.07.2015
Quote:
Originally Posted by Trucido
yeah lmao i just updated it try that, it should work
|
Thanks a lot mate , I just got the idea how to continue working on it <3