Jump to content
  • 0

[Problema] 'Mute" Server


Nokian73

Question

Am o problema la server, aceasta este in felul urmator:

Intru pe server cu un cont neinregistrat, ma inregistrez, si nu-mi da voie sa vorbesc pe chat decat daca folosesc comenziile " /local | /say "

Daca dau relog, imi da voie sa vorbesc pe chat normal din tasta " T "

Imi puteti spune de la ce poate fi?  :undecided:

P.S: MOD RPG (nu ma redirectionati la Probleme Godfather va rog mult...raspundeti-mi aici)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Am specificat ca, daca dau relog imi da voie sa vorbesc normal !

Comenziile sunt:

	if(strcmp(cmd, "/local", true) == 0 || strcmp(cmd, "/l", true) == 0 || strcmp(cmd, "/say", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "[UltraGaming RPG]: Trebuie sa fi logat pentru a utiliza aceasta comanda.");
	            return 1;
	        }
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "» Scrie: (/l)ocal [local chat]");
				return 1;
			}
  	        if(PlayerInfo[playerid][pHMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "[UltraGaming RPG]: Ai mute, nu poti utiliza aceasta comanda.");
				return 1;
			}
			format(string, sizeof(string), "» %s: %s", sendername, result);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			printf("%s", string);
		}
		return 1;
	}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.