/noooc problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /noooc problem (
/showthread.php?tid=81894)
/noooc problem -
jonybomb - 14.06.2009
I put on my server, the gamemode is PEN, the ID's of players in front the nick, for example: "jonybomb: (id: 0) hello"
And after that the / mute and / noooc let the players write the will, I amend the / mute but I am not able to resolve the / noooc, since yesterday I'm trying to solve!
See the code
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
return 0;
}
if(Mute[playerid] == 0)
{
if(noooc = 0)
{
new textstring[128];
format(textstring, sizeof(textstring), "(id:%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 0;
}
if(noooc = 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "*Chat OFF");
return 0;
}