/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <zombieplague> #include <hamsandwich> #include <cstrike> #include <fakemeta> #define is_valid_player(%1) (1 <= %1 <= 32) #define PLUGIN "G36K" #define VERSION "1.0" #define AUTHOR "Wloowka" new bool:g_HasSG552[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /g36k", "sg552") RegisterHam(Ham_TakeDamage, "player", "obrazenia") } public sg552(id) { if(is_user_alive(id)) if (zp_get_user_zombie(id)) { return PLUGIN_HANDLED; } if(zp_get_user_ammo_packs(id) < 5) { client_print(id, print_chat,"Masz za malo ammo packow"); return PLUGIN_HANDLED; } else { give_item ( id, "weapon_sg552" ) client_print(id, print_chat, "Kupiles GrandExecutors G36K !"); } return PLUGIN_HANDLED; } public obrazenia(victim, inflictor, attacker, Float:damage) { if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_SG552 && g_HasSG552[attacker] ) { SetHamParamFloat(4, damage * 3.0) } }
Chciałbym, żeby
a) za kupienie broni przez komendę odbierało to 5 ap
brało 2x dmg (wkleiłem kawałek skryptu ale nie działa)
c) była 2x szybsza prędkość strzelania
d) inny model podstawiony za sg552