/check a cmd to see player's guns [+REP]
#5

Quote:
Originally Posted by OneTwoThree
Посмотреть сообщение
Could you provide us with more info?
Which game mode are you using?
Some commands? /stats would help a lot
Seriously?... Anyways...
Hi!, Here you have one function that I just made, I wish it helps you.

Код:
CheckPlayerWeaps(playerid)
{
	new weap, ammo, string[64];
	for (new i = 0; i <= 12; i++)
	{
    	GetPlayerWeaponData(playerid, i, weap, ammo);
    	format(string,sizeof(string),"SLOT: %i. WEAPON: %i, AMMO: %i",i, weap, ammo);
	SendClientMessage(playerid,-1,string);
	}
	return 1;
}
This is not tested!... Here an example of using it, using sscanf and zcmd.
Код:
CMD:checkweaps(playerid, params[])
{
	new player;
	if(!sscanf(params, "r", player))
	{
		CheckPlayerWeaps(player);
	}
        else SendClientMessage(playerid, -1 "[USAGE]: /checkweaps [ID player]");
	return 1;
}
EDIT: I started posting this before all the answers, sorry. And also sorry for my bad english:V
Reply


Messages In This Thread
/check a cmd to see player's guns [+REP] - by [SU]Spartan - 17.02.2016, 04:55
Re: /check a cmd to see player's guns [+REP] - by OneTwoThree - 17.02.2016, 05:14
Re: /check a cmd to see player's guns [+REP] - by BiosMarcel - 17.02.2016, 05:27
Re: /check a cmd to see player's guns [+REP] - by iKarim - 17.02.2016, 05:33
Respuesta: Re: /check a cmd to see player's guns [+REP] - by Whillyrez - 17.02.2016, 05:33
Re: /check a cmd to see player's guns [+REP] - by [SU]Spartan - 17.02.2016, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)