Jump to content

Cum sa faci comanda /takeguns!


Kenzo

Recommended Posts

Deci m-am gandit sa fac aceasta comanda pentru ca multi playeri o vor pe gm-ul lor si nu stiu  cum sa faca...

Pasul 1-Intri in gamemod.

Pasul 2-Ctrl+F si cauti "/sell"

Pasul 3-Mai jos de /sell pui:

	if(strcmp(cmd, "/takeguns", true) == 0)
	{
 	    if(IsPlayerConnected(playerid))
	    {
                       if(PlayerInfo[playerid][pMember] == NR Factiune || PlayerInfo[playerid][pLeader] == NR Factiune )
                        {
                if(PlayerToPoint(5.0, playerid,coordonatele de unde vrei sa cumperi armele.Cand dai in joc /save.))
                {

                      }
                   else
                   {
				    SendClientMessage(playerid, COLOR_GRAD2, "You buy weapons!");
				    GivePlayerWeapon(playerid,24,500);//aici pui ce arma vrei tu
				    GivePlayerWeapon(playerid,30,500);
				    GivePlayerMoney(playerid,-2000);//aici cat vrei sa coste armele 
				    return 1;
                }
         }
                }
        return 1;
        }

Sper sa va ajute acest tutorial!

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.