PHP Code:
/*
This plugin was made by CoLa^ also known as Nur5,Nur56 and T-Bag, this plugin was made with help from Reality Paintball
for the Flash Light effect, I thank the maker of R Paintball for it.
CVars:
amx_home 1/0 Triggers the plugin, effect is on next round, Defaults 1
I would also like to thank the maker of ColorChat include.
Have Fun!!
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <colorchat>
#include <engine>
#define PLUGIN "HomeFree"
#define VERSION "1.0"
#define AUTHOR "CoLa"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("amx_home","1")
register_logevent("RoundStart",2,"0=World triggered", "1=Round_Start")
}
public RoundStart(id) {
new CsTeams:teams = cs_get_user_team(id)
if(get_cvar_num("amx_home") > 0) {
HomeFree(id)
strip_user_weapons(0)
switch(teams) {
case 1:
{
give_item(id,"weapon_knife")
ColorChat(id,BLUE,"[HomeFree]^x03YOU CAN SPRINT BY RIGHT CLICKING KNIFE!")
ColorChat(id,RED,"[HomeFree]^x03YOU CAN SLOW FALL IN THE AIR BY PRESSING AND HOLDING E!!!")
}
case 2:
{
ColorChat(id,BLUE,"^x03Kill all the T's in 5 minutes, they have advantages so beware!")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
}
}
ColorChat(0,RED,"[HomeFree!!!]^x04Get ^x03Ready ^x01To ^x03PLAAAAAAAAAAAAAAAAY!")
}
if(get_cvar_num("amx_home") <= 0) {
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public HomeFree(id) {
new weapon = get_user_weapon(id)
new CsTeams:teams = cs_get_user_team(id)
switch(teams) {
case 1: {
if(weapon == CSW_KNIFE) {
while(get_user_button(id) & IN_ATTACK2) {
message_begin(MSG_ONE,get_user_msgid("FlashBat"),{0,0,0},id)
write_byte(100)
message_end()
set_user_maxspeed(id,-5)
}
}
set_user_health(id,200)
while(get_user_button(id) & IN_USE) {
set_user_gravity(id,-2.66666667)
}
}
case 2: {
set_user_health(id,120)
}
}
return PLUGIN_CONTINUE
}
no matter how hard i try NOTHING happens, I even tried replacing round start with a say /go command, still nothing
Please help.