Jump to content
  • 0

Ajutor la o comanda


Costy1998

Question

Deci am o comanda /RW pentru setu de arme.

Da am facuto si pentru admin la admin ie gratis da ie facuta si pentru playery da la ei costa $200,000.

Da daca un player scrie zice ca nui admin ce mai trebui sa adaug la comanda sa merga si pentru playery.

 if(strcmp(cmdtext, "/rw", true)==0)
	{
        if(DM[playerid] == 0)
        {
		if (GetPlayerMoney(playerid) >= 200000)
		{
		GivePlayerWeapon(playerid, 4,  99999);
        GivePlayerWeapon(playerid, 22, 99999);
        GivePlayerWeapon(playerid, 28, 99999);
	    GivePlayerWeapon(playerid, 26, 99999);
		GivePlayerMoney(playerid, -200000);
        SendClientMessage(playerid,COLOR_GREEN, " Knew got a kit with more weapons and life with full armor!");
		}
		else
		{
		SendClientMessage(playerid, COLOR_RED, " Do not have enough money! You need $ 200,000.");
		return 1;
		}
		}
		if(DM[playerid] == 1)
        {
        SendClientMessage(playerid,COLOR_YELLOW,"You can use the command in this zone.");
        }
		return 1;
	} 

Va rog ajutatima.

monitor.php?IP=31.14.12.120&PORT=7777&STYLE=5
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

:-w

if(strcmp(cmdtext, "/rw", true)==0)

{

        if(DM[playerid] == 0)

        {

if (GetPlayerMoney(playerid) >= 200000)

{

GivePlayerWeapon(playerid, 4,  99999);

        GivePlayerWeapon(playerid, 22, 99999);

        GivePlayerWeapon(playerid, 28, 99999);

    GivePlayerWeapon(playerid, 26, 99999);

GivePlayerMoney(playerid, -200000);

        SendClientMessage(playerid,COLOR_GREEN, " Knew got a kit with more weapons and life with full armor!");

}

else

{

SendClientMessage(playerid, COLOR_RED, " Do not have enough money! You need $ 200,000.");

return 1;

}

}

if(DM[playerid] == 1)

        {

        SendClientMessage(playerid,COLOR_YELLOW,"You can use the command in this zone.");

        }

return 1;

}

acolo la -200000 scrie -0 crek asa mg

UITE CODUL  if(strcmp(cmdtext, "/rw", true)==0)

{

        if(DM[playerid] == 0)

        {

if (GetPlayerMoney(playerid) >=0)

{

GivePlayerWeapon(playerid, 4,  99999);

        GivePlayerWeapon(playerid, 22, 99999);

        GivePlayerWeapon(playerid, 28, 99999);

    GivePlayerWeapon(playerid, 26, 99999);

GivePlayerMoney(playerid, -0);

        SendClientMessage(playerid,COLOR_GREEN, " Knew got a kit with more weapons and life with full armor!");

}

else

{

SendClientMessage(playerid, COLOR_RED, " Do not have enough money! You need 0$.");

return 1;

}

}

if(DM[playerid] == 1)

        {

        SendClientMessage(playerid,COLOR_YELLOW,"You can use the command in this zone.");

        }

return 1;

}

SS_MP.jpg
Link to comment
Share on other sites

Pentru simplul mod cretin in care ai putut sa scrii topicul asta, nu o sa te ajut.

Doar postez sa nu te las in prostia ta:

playery = playeri .

ie = e .

facuto = facut-o (se aude si in vorbire).

Invata sa vorbesti... te faci de ras si de c*c*t .

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

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.