|
发表于 2011-11-14 18:44:54
|
显示全部楼层
来自 中国–江苏–苏州
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
public plugin_init()
{
register_plugin("Free ak/m4", "0.0.1", "not me");
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawnPost", 1);
}
public FwdPlayerSpawnPost(id)
{
if(is_user_alive(id))
{
switch(cs_get_user_team(id))
{
case CS_TEAM_T:
{
give_item(id, "weapon_ak47")
}
case CS_TEAM_CT:
{
give_item(id, "weapon_m4a1")
}
}
}
} |
|