apple20612
|
分享:
▼
x0
|
[CZ] 谁可以帮我改一下补给箱SMA~近
帮我把补给箱里的MP5改成P90~~ 谢谢
#include <amxmodx> #include <cstrike> #include <fun> #include "dtgifts" #define PLUGIN_NAME "DTGifts-补给箱礼物修改" #define PLUGIN_VERSION "1.1" #define PLUGIN_AUTHOR "ahcat" public plugin_init() { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR); register_gift_l( "get_mp5", "WEAPON_GET_SOMEGUN", "WEAPON_GET_MP5", 80); register_gift_l( "get_sg552", "WEAPON_GET_SOMEGUN", "WEAPON_GET_SG552", 85); register_gift_l( "get_he", "WEAPON_GET_SOMEHE", "WEAPON_GET_HE", 95); register_gift_l( "get_elite", "WEAPON_GET_SOMEGUN", "WEAPON_GET_elite", 90); } public get_mp5( id) { give_item( id, "weapon_mp5navy"); give_item( id, "ammo_9mm"); give_item( id, "ammo_9mm"); give_item( id, "ammo_9mm"); } public get_sg552(id) { give_item( id, "weapon_sg552"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); } public get_he(id) { new n_currentHE = cs_get_user_bpammo( id, CSW_HEGRENADE); if (n_currentHE == 0) give_item ( id, "weapon_hegrenade"); else cs_set_user_bpammo( id, CSW_HEGRENADE, n_currentHE + 1); new n_currentFB = cs_get_user_bpammo( id, CSW_FLASHBANG); if (n_currentFB == 0) give_item ( id, "weapon_flashbang"); else cs_set_user_bpammo( id, CSW_FLASHBANG, n_currentFB + 1); new n_currentSM = cs_get_user_bpammo( id, CSW_SMOKEGRENADE); if (n_currentSM == 0) give_item ( id, "weapon_smokegrenade"); else cs_set_user_bpammo( id, CSW_SMOKEGRENADE, n_currentSM + 1); } public get_elite( id) { give_item( id, "weapon_elite"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); }
|
|
x0
[楼 主]
From:台湾中华电信 | Posted:2009-11-26 20:45 |
|
|
calove00
|
分享:
▲
▼
#include <amxmodx> #include <cstrike> #include <fun> #include "dtgifts" #define PLUGIN_NAME "补给箱礼物修改 by Ca`" #define PLUGIN_VERSION "1.1a" #define PLUGIN_AUTHOR "ahcat"
public plugin_init() { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR); register_gift_l( "get_p90", "WEAPON_GET_SOMEGUN", "WEAPON_GET_P90", 80); register_gift_l( "get_sg552", "WEAPON_GET_SOMEGUN", "WEAPON_GET_SG552", 85); register_gift_l( "get_he", "WEAPON_GET_SOMEHE", "WEAPON_GET_HE", 95); register_gift_l( "get_elite", "WEAPON_GET_SOMEGUN", "WEAPON_GET_elite", 90); }
public get_p90( id) { give_item( id, "weapon_p90"); give_item( id, "ammo_9mm"); give_item( id, "ammo_9mm"); give_item( id, "ammo_9mm"); }
public get_sg552(id) {
give_item( id, "weapon_sg552"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); give_item( id, "ammo_556nato"); }
public get_he(id) { new n_currentHE = cs_get_user_bpammo( id, CSW_HEGRENADE); if (n_currentHE == 0) give_item ( id, "weapon_hegrenade"); else cs_set_user_bpammo( id, CSW_HEGRENADE, n_currentHE + 1);
new n_currentFB = cs_get_user_bpammo( id, CSW_FLASHBANG); if (n_currentFB == 0) give_item ( id, "weapon_flashbang"); else cs_set_user_bpammo( id, CSW_FLASHBANG, n_currentFB + 1);
new n_currentSM = cs_get_user_bpammo( id, CSW_SMOKEGRENADE); if (n_currentSM == 0) give_item ( id, "weapon_smokegrenade"); else cs_set_user_bpammo( id, CSW_SMOKEGRENADE, n_currentSM + 1); } public get_elite( id) { give_item( id, "weapon_elite"); give_item( id, "ammo_57mm"); give_item( id, "ammo_57mm"); give_item( id, "ammo_57mm"); }
应该没有改错~
|
|
x0
[3 楼]
From:香港有线宽频 | Posted:2009-11-28 20:45 |
|
|
|