Jump to content
  • 0

ajutor


SampRomania

Question

7 answers to this question

Recommended Posts

//----------------------------------[ooc]-----------------------------------------------
	if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
	            return 1;
	        }
			if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "   The OOC channel has been disabled by an Admin !");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been silenced !");
				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, "{00A1FF}USAGE{FFFFFF}: (/o)oc [ooc chat]");
				return 1;
			}
			format(string, sizeof(string), "(({4BB3F9}Admin {F81414}%s{FFFFFF}: %s ))", sendername, result);
			OOCOff(COLOR_OOC,string);
			printf("%s", string);//aici
		}
		return 1;
	}

  Asta e codul de la comanda /o. La Admini 1 , 2 ,3 , 4 sa apara  Admin cu galben , la 1338 sa apara Owner cu rosu , iar la 1339 Scripter cu verdele ala deschis. Multumesc pentru cei care vor sa ma ajute. P.S: Toate intre 2 paranteze ..

Link to comment
Share on other sites

  Si imi poti face te rog pe grade?

La Admin 1 , 2 , 3 4 , 1337 sa apara asa: (({FFCC00}Admin {FFCC00})): Si mesaju care o sa-l dea cu culoarea {FFCC00}

La  Owner sa apara asa: (({FF0000}Owner {FF0000})): Si mesaju care o sa-l dea cu culoarea {FFCC00}

  Si cam atat.

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.