SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 15/08/2011, 06:51 AM   #1
Users
Huge Clucker
 
Join Date: Jul 2011
Posts: 269
Reputation: -1
Default De ce nu merge?

Am si eu aceasta comanda doar pentru pDonateRank si pentru pAdmin...merge dar doar adminii vad ce scriu in /p playerul cu gold sau altceva nu vede...dc ce pot facE?
Code:
	if(strcmp(cmd, "/premiun", true) == 0 || strcmp(cmd, "/p", 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;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/p)remium [premium chat]");
				return 1;
			}
			format(string, sizeof(string), "* Moderator-Incepator %s: %s", sendername, result);
			if (PlayerInfo[playerid][pAdmin] == 1)
			{
				SendAdminMessage(COLOR_MODINCEPATOR, string);
			}
			else if(PlayerInfo[playerid][pAdmin] == 2)
			{
			    format(string, sizeof(string),"* Moderator-Mediu %s: %s", sendername, result);
			    SendAdminMessage(COLOR_MODMEDIU, string);
			}
			else if(PlayerInfo[playerid][pAdmin] == 3)
			{
				format(string, sizeof(string),"* Moderator-Expert %s: %s", sendername, result);
				SendAdminMessage(COLOR_MODEXPERT, string);
			}
			else if(PlayerInfo[playerid][pAdmin] == 4)
			{
				format(string, sizeof(string),"* Administrator %s: %s", sendername, result);
				SendAdminMessage(COLOR_ADMINISTRATOR, string);
			}
			else if(PlayerInfo[playerid][pAdmin] == 1337)
			{
				format(string, sizeof(string),"* Administrator-Lider %s: %s", sendername, result);
				SendAdminMessage(COLOR_LIDER, string);
			}
			else if(PlayerInfo[playerid][pAdmin] == 1340)
			{
				format(string, sizeof(string),"* Administrator-Propietar %s: %s", sendername, result);
				SendAdminMessage(COLOR_PROPIETAR, string);
			}
			else if(PlayerInfo[playerid][pDonateRank] == 1)
			{
				format(string, sizeof(string),"* Bronze %s: %s", sendername, result);
				SendAdminMessage(0x999900FF, string);
			}
			else if(PlayerInfo[playerid][pDonateRank] == 2)
			{
				format(string, sizeof(string),"* Silver %s: %s", sendername, result);
				SendAdminMessage(0xCCFFFFFF, string);
			}
			else if(PlayerInfo[playerid][pDonateRank] == 3)
			{
				format(string, sizeof(string),"* Gold %s: %s", sendername, result);
				SendAdminMessage(0xFFFF33FF, string);
			}
			printf("Admin %s: %s", sendername, result);
		}
		return 1;
	}
Users is offline   Reply With Quote
Old 15/08/2011, 07:26 AM   #2
abyss.
Little Clucker
 
Join Date: Aug 2011
Posts: 14
Reputation: 0
Default Re: De ce nu merge?

Ffs. Daca nu ma insel i-ai bagat pe cei cu pDonateRank in admini. Mai exact:

Code:
			else if(PlayerInfo[playerid][pDonateRank] == 1)
			{
				format(string, sizeof(string),"* Bronze %s: %s", sendername, result);
				SendAdminMessage(0x999900FF, string);
abyss. is offline   Reply With Quote
Old 15/08/2011, 07:52 AM   #3
Jafet_Macario
Huge Clucker
 
Jafet_Macario's Avatar
 
Join Date: Jul 2011
Posts: 472
Reputation: 60
Default Re: De ce nu merge?

pawn Code:
forward SendPremiumMessage(color, string[]);
public SendPremiumMessage(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pDonateRank] >= 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}
pawn Code:
else if(PlayerInfo[playerid][pDonateRank] == 1)
            {
                format(string, sizeof(string),"* Bronze %s: %s", sendername, result);
                SendAdminMessage(0x999900FF, string);
                SendPremiumMessage(0x999900FF, string);
            }
            else if(PlayerInfo[playerid][pDonateRank] == 2)
            {
                format(string, sizeof(string),"* Silver %s: %s", sendername, result);
                SendAdminMessage(0xCCFFFFFF, string);
                SendPremiumMessage(0x999900FF, string);
            }
            else if(PlayerInfo[playerid][pDonateRank] == 3)
            {
                format(string, sizeof(string),"* Gold %s: %s", sendername, result);
                SendAdminMessage(0xFFFF33FF, string);
                SendPremiumMessage(0x999900FF, string);
            }
__________________
Jafet_Macario is offline   Reply With Quote
Old 15/08/2011, 08:39 AM   #4
Users
Huge Clucker
 
Join Date: Jul 2011
Posts: 269
Reputation: -1
Default Re: De ce nu merge?

Reusit t.c mutlumesc
Users is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i merge this? cloudysky Help Archive 1 04/06/2011 05:38 PM
how to merge fs? misho1 Help Archive 10 25/03/2011 01:44 PM
Nu merge sa compilez TheHbK2310 Română/Romanian 3 28/01/2011 06:44 PM
Nu merge hbk2310 Română/Romanian 17 20/06/2010 02:16 PM


All times are GMT. The time now is 12:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.