24.12.2011, 23:52
Код:
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); } } } }