tog newbie create - 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: tog newbie create (
/showthread.php?tid=336994)
tog newbie create -
TuTh - 24.04.2012
i have create a newbie chat and command /nonewbie but i can't create /togn... it's not work
new gNewbie[MAX_PLAYERS];
gNewbie[playerid] = 0; at onplayerconnect
gNewbie[playerid] = 1; at setplayerspawn
gNewbie[i] = 0; at setplayerunjail
and command
Code:
}
if(strcmp(cmd, "/togn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!gNewbie[playerid])
{
gNewbie[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel Disabled !");
}
else if (gNewbie[playerid])
{
gNewbie[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel Enabled !");
}
}
return 1;
and if you can help me with "/nmute" for mute player only on newbie
Re: tog newbie create -
Jikesh - 24.04.2012
This doesn't make any sense to me. Are you looking for a /nmute command which mutes all newbie[playerid] =1 players ?
If yes then add the below code under OnPlayerText
if(gNewbie[playerid] == 1)
{
SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Chat");
return 0;
}
Re: tog newbie create -
TuTh - 24.04.2012
no man. "/togn" it's like "/togfam" . to can't see the chat
"/nmute" to mute one newber.