Jump to content
  • 0

Disarm/givegun/freeze


Question

Posted

Salut.Stie cineva cum pot face urmatoarele comenzi?

/freeze [Raza]=Sa dea freeze pe o raza anume..

/disarm [Raza]=Sa dea disarm pe o raza anume..

/givegun [Raza]=Sa dea cate o arma pe o raza anume..

Va multumesc.

1 answer to this question

Recommended Posts

  • 0
Posted

Nu iti dau toate comenzile, dar iti dau un exemplu.

 

CMD:freezerange(playerid, params[])
{
	new raza;
	if(sscanf(params, "i",raza)) return SendClientMessage(playerid, -1, "/freezerange [raza]");
	new XYZ[3];
	GetPlayerPos(playerid, XYZ[0],XYZ[1],XYZ[2]);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(IsPlayerInRangeOfPoint(i, raza, XYZ[0],XYZ[1],XYZ[2])) { TogglePlayerControllable(i, 0); }
		}
	}
	return 1;
}

(N-am testat-o, dar nu are ce sa nu mearga).

                        

 

 

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.