Jump to content

Question

Posted

Ma poate ajuta cineva cu comanda /mask? Sunt incepator in scripting asa ca fiti blanzi va rog

Vreau comanda pentru factiunile FBI si Hitman (id 2 si 8)

Multumesc anticipat

6 answers to this question

Recommended Posts

Posted

 	if(strcmp(cmd, "/maskon", true) == 0) // by BuBu
	{
	    if(IsPlayerConnected(playerid))
	    {
		    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
		    {
			for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
		   			SetPlayerColor(giveplayerid,COLOR_WHITE); // sa se vada pe TAB cu culoarea alba
                                       SetPlayerMarkerForPlayer(i, playerid, 0); // nu se vede pe map/minimap
				}
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "V-ati pus masca pe fata [/maskoff ca sa o scoateti].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s si-a pus masca pe fata.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "Nu sunteti donator/admin sau hitman.");
			    return 1;
			}
	    }
	    return 1;
	}
Comanda e facut special pentru serverul meu, sper sa iti placa eu o folosesc la donatori si hitman. Cauta [glow=red,2,300]enum pInfo[/glow] si adauga
pMaskuse,
Cauta [glow=red,2,300]public OnPlayerConnect[/glow] si adauga
PlayerInfo[playerid][pMaskuse] = 0;

Posted

Adaugi aici [pawn]if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)[/pawn] Dupa [pLeader] == 8

adaugi || PlayerInfo[playerid][pDonator] == 8 sau cum ai tu sper ca ai inteles.

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

Tu chiar esti nesimtit deacuma ceri orice comanda, ai cerut /mask, atunci ti-am dato chiar nu poti sa faci ca sa se dezactiveze cand apelezi o alta comanda /maskoff ? Chiar nu poti gandi putin?

Nu are cum sa aiba restrictie comanda /mask daca nu stii sa tio pui cred ca ai editat ceva gresit, [XSR]Next. ti-a explicat foarte clar cum sa faci sa iti modifici restrictia.

Guest
This topic is now closed to further replies.
×
×
  • 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.