Problem
#5

Код:
forward CheckReloadingWeapon();
public CheckReloadingWeapon()
{
   for(new i = 0; i < MAX_PLAYERS; i++)
	{
 		if(GetPlayerWeaponState(i) == WEAPONSTATE_RELOADING) //&& laststate[i] != WEAPONSTATE_RELOADING)
  		{
 			if(IsPlayerConnected(i))
   			{
				new weap, ammo, string [128], wName[24], pName[24];
			   	GetPlayerWeaponData(i, 7, weap, ammo);
			   	GetWeaponName(weap, wName, sizeof(wName));
			   	GetPlayerName(i, pName, sizeof(pName));
			   	format(string, sizeof(string), "%s is reloading.Weapon: %s - Ammo %d", pName, weap, ammo);
			   	SendClientMessageToAll(0xFF0000FF, string);
   			}
  		}
 	}
}
No errors, no idea if works.
Reply


Messages In This Thread
Problem - by Face9000 - 24.12.2011, 23:38
Re: Problem - by Mini` - 24.12.2011, 23:48
Re: Problem - by spedico - 24.12.2011, 23:49
Re: Problem - by Gh05t_ - 24.12.2011, 23:49
Re: Problem - by spedico - 24.12.2011, 23:52
Re: Problem - by Face9000 - 24.12.2011, 23:58
Re: Problem - by spedico - 25.12.2011, 00:00
Re: Problem - by spedico - 25.12.2011, 00:07
Re: Problem - by Face9000 - 25.12.2011, 00:08
Re: Problem - by Mini` - 25.12.2011, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)