Making global chat allways online.. - 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: Making global chat allways online.. (
/showthread.php?tid=548780)
Making global chat allways online.. -
davidstyle1125 - 02.12.2014
Hello, I wanted to ask you for some help..
I want to make the "Global Chat" command to be allways togged on, Because
Every time you logged in you must /toggc to turn it on.
How can I set it ON all the time..?
Re: Making global chat allways online.. -
Lordzy - 02.12.2014
Under OnPlayerConnect, set the GlobalChat array to 1. It will set the GlobalChat ON for the player by default.
Re: Making global chat allways online.. -
davidstyle1125 - 02.12.2014
@Lordzy - Hey, I cannot find the "OnPlayerConnect", Could you tell where's that?
Re: Making global chat allways online.. -
Capua - 02.12.2014
Quote:
Originally Posted by davidstyle1125
@Lordzy - Hey, I cannot find the "OnPlayerConnect", Could you tell where's that?
|
OnPlayerConnect should be in your gamemode.
Re: Making global chat allways online.. -
Lordzy - 02.12.2014
Quote:
Originally Posted by davidstyle1125
@Lordzy - Hey, I cannot find the "OnPlayerConnect", Could you tell where's that?
|
I assume you're not the author of that script, so you can try finding it using find feature (Ctrl + F). If it isn't there, declare it;
pawn Код:
public OnPlayerConnect(playerid)
{
//codes
return 1;
}
Re: Making global chat allways online.. -
davidstyle1125 - 02.12.2014
Thanks, Solved.