Jump to content
  • 0

1.ordine /admins 2.repair


Guest vtr

Question

1.Cum pot face ca atunci cand scrie cineva /admins sa-i dea in ordinea gradului. Adica primu Owner,sub el Moderator..etc

	if (strcmp(cmd, "/admins", true) == 0) 
	{
        if(IsPlayerConnected(playerid))
	    {
	        SendClientMessage(playerid, COLOR_GREEN, "|____ SAMP.Legends Admins Online ____|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1338 || PlayerInfo[i][pTester] >= 1)
				    {
				        new admtext[64];
				        {
				         	if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Server Owner"; }
							else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "[1337]Server Scripter"; }
							else if(PlayerInfo[i][pAdmin] == 6)	{ admtext = "[6]Server Developer"; }
							else if(PlayerInfo[i][pAdmin] == 5) { admtext = "[5]Main Administrator"; }
							else if(PlayerInfo[i][pAdmin] == 4) { admtext = "[4]Senior Administrator"; }
							else if(PlayerInfo[i][pAdmin] == 3) { admtext = "[3]Administrator"; }
							else if(PlayerInfo[i][pAdmin] == 2)	{ admtext = "[2]Global Moderator"; }
							else if(PlayerInfo[i][pAdmin] == 1) { admtext = "[1]Moderator"; }
							else if(PlayerInfo[i][pTester] == 3) { admtext = "Lead Tester"; }
							else if(PlayerInfo[i][pTester] == 2) { admtext = "Tester"; }
							else if(PlayerInfo[i][pTester] == 1) { admtext = "Trial Tester"; }
							else { admtext = "Unknown Rank"; }
						}
						GetPlayerName(i, sendername, sizeof(sendername));
						if(PlayerInfo[i][pAdminDuty] == 0)
						{
							format(string, sizeof(string), "%s - %s (Off Duty)", admtext, sendername);
							SendClientMessage(playerid, COLOR_WHITE, string);
						}
						else if(PlayerInfo[i][pAdminDuty] == 1)
						{
						    format(string, sizeof(string), "%s - %s (On Duty)", admtext, sendername);
							SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
						}
					}
				}
			}
		}
		return 1;
	}

2. si mai am o nelamurire. Cand dau sa repar masina prin comanta respectiva, sau cand o repara mecanicul, o reparaa doar in "interor", adica nu si la exterior. Cum pot face sa irepare si bara si tot ?

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.