Jump to content

[Script]Chat Tags


AlexMaican

Recommended Posts

Salutare tuturor , am decis sa public chat`ul meu de pe GM`ul meu. Chat insemnand: ex: Daca player`ul e politist uitati:

Politist AlexMaican [ID:1] spune : test   . Eu am tag`urile facute pt fiecare factiune dar v-a voi da script`ul principal.Acesta este:

  else if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
		{
		    text[0] = toupper(text[0]);
			format(string, sizeof(string), "{FAFAF1}Civil %s{00C0FF} [ID %d] {9AE1FC}spune{FCBE03}: {FFFFFF}%s", sendername,playerid, text);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLevel] >= 1) SetPlayerChatBubble(playerid, string, 0xa9c4e4FF, 20.0, 10000);
		}

Bun,ce trebuie voi sa faceti: Trebuie acolo sa puneti la pMember == 1 || si la pleader 1 daca e din Politia Romana, si asa mai departe.Sper ca acest script v-a fii raspandit rapid. O zii buna tuturor :D. Dar atentie v-a rog: Inainte trebuie sa stergeti tot ce aveti la if(realchat) si sa puneti asa v-a rog:

		if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
		{
		    text[0] = toupper(text[0]);
			format(string, sizeof(string), "{0000FF}Politist %s{00C0FF} [ID %d] {9AE1FC}spune{FCBE03}: {FFFFFF}%s", sendername,playerid, text);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAgent] >= 1) SetPlayerChatBubble(playerid, string, 0xa9c4e4FF, 20.0, 10000);
		}

Si veti continua exact cum v-am spus pai sus . BAFTA ALL! :D

Edited by AlexMaican
Am scris ceva gresit.
  • Upvote 1
Link to comment
Share on other sites

Am sa imi spun parerea in raport cu ce ai facut tu. STRICT OBIECTIV.

1) Acest "script" nu este asa dificil de conceput sunt doar niste verificari simple.

2) Idea in sine e originala si te felicit pt aceasta, DAR tu ai acolo niste greseli fundamentale pentru care nu va merge la toti:

- pMember nu este la toti, eu de exemplu mi-am facut variabila de member in romana "pMembru"

- PlayerInfo este definirea standard a variabilei folosite pentru playeri din GM GodFather spre cele noi aparute. Problema este ca la GM-uri o sa gasesti sub diferite forme aceasta variabila. La mine de exemplu mi-am creat P_DATA, in tutorialul meu de register login gasesti P_Data, la unele GM-uri ai sa gasesti playerVariable .

Deci in concluzie sigur am sa vad topicuri irosite la probleme scripting cu una dintre aceste probleme, pentru ca lumea copie, nu gandeste, nu arunca un ochi pe wiki, nu arunca un ochi in tutorial sa il inteleaga,doar copie si ATAT. fara folos...

3. Puteai macar sa pui o poza ceva

4. acest "script" Chat Tag l-ai pus la filescript-uri dar, nu ai facut un fisier .pwn cu el,deci nu este un filescript.

 

Atat am avut de zis. Sper sa fie constuctiv.

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.