Something like if PlayerHoldingGun
#1

Код:
	if(strcmp(cmd, "/holster", true) == 0)
	{
  new weaponid;
  weaponid = GetPlayerWeapon(playerid);
	SetHolderWeapon(playerid,weaponid);
	GivePlayerWeapon(playerid,weaponid,0);
	return 1;

  }
Thats the code I have for now, but how can I only allow people holding any gun to use the command? And how can I remove the weapon they holstered? I tried with GivePlayerWeapon(playerid,weaponid,0), but didnt work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)