Jump to content
  • 0

Cate-va intrebari!


Question

Posted

1.cum fac jucatori pe minimapa putin mai transparenti?

2.care are chat /newbie bun!

3.care are steagu romaniei acolo mai sus de heal?

4.cine ma ajuta sa pun un login/register?am incercat eu da nu mergea de loc!imi apare login bag parola si nu imi da spawn!

7 answers to this question

Recommended Posts

Posted

1.uite aici: http://wiki.sa-mp.com/wiki/Colors_List

2.nu intelg ce ai zis...

3.uite cu TextDrawEditor: http://forum.sa-mp.com/showthread.php?t=117851&highlight=textdraweditor faci ce textdraw vrei

4.uite aici cateva tutoriale: http://forum.sa-mp.com/showthread.php?t=167937

                                          http://forum.sa-mp.com/showthread.php?t=161491 (PS. asta merge doar daca folosesti ladmin)

                                          http://www.sa-mp.ro/forum/index.php/topic,5160.0.html

Fara reclama in semnatura!

Posted

uite aici comanda /newbie

	if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/n", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
				return 1;
			}
		    if(nonewbie == 1)
		    {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Newbie chat is off.");
				return 1;
			}
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[128];
			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, "USAGE: (/n)ewbie [newbie chat]");
				return 1;
			}
		 	if(PlayerInfo[playerid][pHelper] == 0)
		 	{
			 	format(string, sizeof(string), "[NEWBIE]: Newbie %s: %s", sendername, result);
		 	}
	   		else if(PlayerInfo[playerid][pHelper] == 1)
	   		{
			   format(string, sizeof(string), "[NEWBIE]: Helper %s: %s", sendername, result);
	   		}
	   		else if(PlayerInfo[playerid][pHelper] == 2)
	   		{
			   format(string, sizeof(string), "[NEWBIE]: Master %s: %s", sendername, result);
	   		}
			else if(PlayerInfo[playerid][pHelper] == 3)
			{
				format(string, sizeof(string), "[NEWBIE]: Administrator %s: %s", sendername, result);
			}
			SendClientMessageToAll(0x62B382AA, string);
			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (newbie): (%s)",d,m,y,h,mi,s, sendername, result);
			ChatLog(string);
		}
		return 1;
	}

Posted

Un cod pentru chat /newbie!

Si daca crezi ca tu i dai de cap imi dai si mie pm cu id tau sa ma ajuti ca eu nu reusesc!

Posted

uite aici comanda /newbie

	if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/n", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
				return 1;
			}
		    if(nonewbie == 1)
		    {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Newbie chat is off.");
				return 1;
			}
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[128];
			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, "USAGE: (/n)ewbie [newbie chat]");
				return 1;
			}
		 	if(PlayerInfo[playerid][pHelper] == 0)
		 	{
			 	format(string, sizeof(string), "[NEWBIE]: Newbie %s: %s", sendername, result);
		 	}
	   		else if(PlayerInfo[playerid][pHelper] == 1)
	   		{
			   format(string, sizeof(string), "[NEWBIE]: Helper %s: %s", sendername, result);
	   		}
	   		else if(PlayerInfo[playerid][pHelper] == 2)
	   		{
			   format(string, sizeof(string), "[NEWBIE]: Master %s: %s", sendername, result);
	   		}
			else if(PlayerInfo[playerid][pHelper] == 3)
			{
				format(string, sizeof(string), "[NEWBIE]: Administrator %s: %s", sendername, result);
			}
			SendClientMessageToAll(0x62B382AA, string);
			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (newbie): (%s)",d,m,y,h,mi,s, sendername, result);
			ChatLog(string);
		}
		return 1;
	}

vrei sa ii merga ? daca da esti bun de tot :D

gus vezi cum este /o si incerca sa faci /n

Posted

La 1 ma ajuta cineva ca nu stiu unde sa pun sa merge:|

Foloseste

http://wiki.sa-mp.com/wiki/SetPlayerColor

Sus in script pune

new PlayerColors[200] = {
0xFF8C1340,0xC715FF40,0x20B2AA40,0xDC143C40,0x6495ED40,0xf0e68c40,0x77889940,0xFF149340,0xF4A46040,
0xEE82EE40,0xFFD72040,0x8b451340,0x4949A040,0x148b8b40,0x14ff7f40,0x556b2f40,0x0FD9FA40,0x10DC2940,
0x53408140,0x0495CD40,0xEF6CE840,0xBD34DA40,0x247C1B40,0x0C8E5D40,0x635B0340,0xCB7ED340,0x65ADEB40,
0x5C1ACC40,0xF2F85340,0x11F89140,0x7B39AA40,0x53EB1040,0x54137D40,0x27522240,0xF09F5B40,0x3D0A4F40,
0x22F76740,0xD6303440,0x9A698040,0xDFB93540,0x3793FA40,0x90239D40,0xE9AB2F40,0xAF2FF340,0x057F9440,
0xB9851940,0x388EEA40,0x02815140,0xA5504340,0x0DE01840,0x93AB1C40,0x95BAF040,0x36997640,0x18F71F40,
0x4B898740,0x491B9E40,0x829DC740,0xBCE63540,0xCEA6DF40,0x20D4AD40,0x2D74FD40,0x3C1C0D40,0x12D6D440,
0x48C00040,0x2A51E240,0xE3AC1240,0xFC42A840,0x2FC82740,0x1A30BF40,0xB740C240,0x42ACF540,0x2FD9DE40,
0xFAFB7140,0x05D1CD40,0xC471BD40,0x94436E40,0xC1F7EC40,0xCE79EE40,0xBD1EF240,0x93B7E440,0x3214AA40,
0x184D3B40,0xAE4B9940,0x7E49D740,0x4C436E40,0xFA24CC40,0xCE76BE40,0xA04E0A40,0x9F945C40,0xDCDE3D40,
0x10C9C540,0x70524D40,0x0BE47240,0x8A2CD740,0x6152C240,0xCF72A940,0xE5933840,0xEEDC2D40,0xD8C76240,
0xD8C76240,0xFF8C1340,0xC715FF40,0x20B2AA40,0xDC143C40,0x6495ED40,0xf0e68c40,0x77889940,0xFF149340,
0xF4A46040,0xEE82EE40,0xFFD72040,0x8b451340,0x4949A040,0x148b8b40,0x14ff7f40,0x556b2f40,0x0FD9FA40,
0x10DC2940,0x53408140,0x0495CD40,0xEF6CE840,0xBD34DA40,0x247C1B40,0x0C8E5D40,0x635B0340,0xCB7ED340,
0x65ADEB40,0x5C1ACC40,0xF2F85340,0x11F89140,0x7B39AA40,0x53EB1040,0x54137D40,0x27522240,0xF09F5B40,
0x3D0A4F40,0x22F76740,0xD6303440,0x9A698040,0xDFB93540,0x3793FA40,0x90239D40,0xE9AB2F40,0xAF2FF340,
0x057F9440,0xB9851940,0x388EEA40,0x02815140,0xA5504340,0x0DE01840,0x93AB1C40,0x95BAF040,0x36997640,
0x18F71F40,0x4B898740,0x491B9E40,0x829DC740,0xBCE63540,0xCEA6DF40,0x20D4AD40,0x2D74FD40,0x3C1C0D40,
0x12D6D440,0x48C00040,0x2A51E240,0xE3AC1240,0xFC42A840,0x2FC82740,0x1A30BF40,0xB740C240,0x42ACF540,
0x2FD9DE40,0xFAFB7140,0x05D1CD40,0xC471BD40,0x94436E40,0xC1F7EC40,0xCE79EE40,0xBD1EF240,0x93B7E440,
0x3214AA40,0x184D3B40,0xAE4B9940,0x7E49D740,0x4C436E40,0xFA24CC40,0xCE76BE40,0xA04E0A40,0x9F945C40,
0xDCDE3D40,0x10C9C540,0x70524D40,0x0BE47240,0x8A2CD740,0x6152C240,0xCF72A940,0xE5933840,0xEEDC2D40,
0xD8C76240,0xD8C76240
}
Daca vrei sa fie mai transparent schimbi 40 de la final in mai putin, de exemplu 30, 20 ... daca vrei sa se vada mai bine, schimbi 40 de la final in mai mult, de exemplu 50, 60, 70. La OnPlayerConnect pui asa:
SetPlayerColor(playerid, PlayerColors[playerid]);

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.