Jump to content
  • 0

Problema


ToX1c

Question

Salut am si eu o problema cand scriu ceva in chat de exemplu doar /fa atat imi apare pe minimapa toate s-urile etc ce am pus eu pe sv..cum fac daca scriu sa nu mai apara.

http://img694.imageshack.us/i/samp082tf.png/

if(strcmp(cmd, "/familyaliance", true) == 0 || strcmp(cmd, "/fa", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			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;
			result[0] = toupper(result[0]);
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /familyaliance [Alliance Chat]");
				return 1;
			}
			if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
			{
				if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ The Mafia - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ The Mafia - Cap - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ The Mafia - Consilier - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ The Mafia - Criminal - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ The Mafia - Baietas - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ The Mafia - Smecher - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ The Mafia - Smecher - %s: %s ]", sendername, result);
				}
				SendRadioMessage(5, 0xB56A6AFF, string);
				SendRadioMessage(13, 0xB56A6AFF, string);
				SendRadioMessage(15, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
			else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
			{
			    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ The Triads - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ The Triads - Consigliere - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ The Triads - Capo - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ The Triads - Soldier - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ The Triads - Associate - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ The Triads - Outsider - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ The Triads - Outsider - %s: %s ]", sendername, result);
				}
				SendRadioMessage(6, 0xB56A6AFF, string);
				SendRadioMessage(12, 0xB56A6AFF, string);
				SendRadioMessage(14, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
			else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
			{
			    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ Grove Street - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ Grove Street - Mastermind - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ Grove Street - Gangsta Boy - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ Grove Street - Souljah - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ Grove Street - Mercenary - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ Grove Street - Street Thug - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ Grove Street - Street Thug - %s: %s ]", sendername, result);
				}
				SendRadioMessage(12, 0xB56A6AFF, string);
				SendRadioMessage(6, 0xB56A6AFF, string);
				SendRadioMessage(14, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
            else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
			{
			    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ Ballas - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ Ballas - Balla Roialty - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ Ballas - Front yard Balla - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ Ballas - Ground Shoulder - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ Ballas - TurfWalker - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ Ballas - Newcomer - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ Ballas - Newcomer - %s: %s ]", sendername, result);
				}
				SendRadioMessage(13, 0xB56A6AFF, string);
				SendRadioMessage(5, 0xB56A6AFF, string);
				SendRadioMessage(15, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
            else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
			{
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ LSV - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ LSV - World Threat - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ LSV - Killer - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ LSV - Kidnapper - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ LSV - Member - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ LSV - Package boy - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ LSV - Package boy - %s: %s ]", sendername, result);
				}
				SendRadioMessage(14, 0xB56A6AFF, string);
				SendRadioMessage(6, 0xB56A6AFF, string);
				SendRadioMessage(12, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
			else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
			{
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[ SFR - Leader - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[ SFR - Secondary Boss - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[ SFR - Head Rifa - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[ SFR - Rifa Soldier - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[ SFR - Rifa - %s: %s ]", sendername, result); }
				else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[ SFR - OutSider - %s: %s ]", sendername, result); }
				else
				{
					format(string, sizeof(string), "[ SFR - OutSider - %s: %s ]", sendername, result);
				}
				SendRadioMessage(15, 0xB56A6AFF, string);
				SendRadioMessage(13, 0xB56A6AFF, string);
				SendRadioMessage(5, 0xB56A6AFF, string);
				printf("%s", string);
				return 1;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, "* Nu esti in vreunul din gang-uri , in The Mafia sau in The Triads!");
				return 1;
			}
		}
		return 1;
	}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.