SA-MP Forums Archive
CMD TOGGC - 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: CMD TOGGC (/showthread.php?tid=613218)



CMD TOGGC - Usama651 - 25.07.2016

PHP код:
CMD:toggc(playeridparams[])
{
    if(
GlobalChat[playerid] == 0)
 {
        
SendClientMessage(playeridCOLOR_WHITE"You have enabled global chat, use /g to chat.");
        
GlobalChat[playerid] = 1;
    }
 else if(
GlobalChat[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_WHITE"You have disabled global chat.");
        
GlobalChat[playerid] = 0;
    }
    return 
1;

Here is Toggc CMD when some 1 connect in server player have to write /toggc to open it i want when player join server its auto opend..... do some thing pls...


Re: CMD TOGGC - Rockefeller - 25.07.2016

Search for GlobalChat onplayerconnect and change 0 to 1