- 266
- 113
Прошу не кидаться код кривоват но работает же.
[HIDE=50]
[/HIDE]
[HIDE=50]
Код:
void cheat_handle_skillmaster() {
static int time=0;
if(cheat_state->_generic.skill == 1 && GetTickCount()-1000 > time) {
actor_info *info = actor_info_get(-1,0);
if(info->weapon_slot != 0) {
if(info->weapon[info->weapon_slot].ammo_clip == 0) {
if(info->weapon[info->weapon_slot].ammo > 7) info->weapon[info->weapon_slot].ammo_clip += 7;
else info->weapon[info->weapon_slot].ammo_clip = info->weapon[info->weapon_slot].ammo;
}
if(info->weapon[info->weapon_slot].ammo_clip > 0) {
info->weapon[info->weapon_slot].ammo_clip -= 1;
info->weapon[info->weapon_slot].ammo -= 1;
}
}
time = GetTickCount();
}
}