/spec /ct
I know there has already been a simliar thread, but discussion went offtopic there, thats why i wanted to start this new one :)
I Just deleted my old prokreedz completely and took the new XJ AMXX package.
Everything i fine, exept one thing ^^
I need a plugin which allows me to change to spec mode and back
I'm sure u all know what i mean ( /spec and /ct ).
would be nice if there was a single plugin for that, because i dont want any "extras"..
thanks :)
Made some time ago for the same reason:
http://www.sendspace.com/file/yj8jo1
It includes /respawn function btw but you can remove it cuz I've added the source file too
ahh thx alot.
just deleted the msgs :)
sorry delete pls my inet fucked up :/
#include
#include
#include
#include
#include
new PLUGIN[]="Team Change"
new AUTHOR[]="st0ka"
new VERSION[]="1.00"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_concmd("say /ct","team_ct")
register_concmd("say_team /ct","team_ct")
register_concmd("say /spec","team_spec")
register_concmd("say_team /spec","team_spec")
register_concmd("say /respawn","player_respawn")
register_concmd("say_team /respawn","player_respawn")
set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET)
}
public team_ct(id)
{
new CsTeams:team = cs_get_user_team(id)
if (team == CS_TEAM_CT)
{
return PLUGIN_HANDLED
}
else
{
cs_set_user_team(id,CS_TEAM_CT,CS_DONTCHANGE)
cs_user_spawn(id)
give_item(id,"weapon_knife")
give_item(id,"weapon_usp")
give_item(id,"weapon_usp")
give_item(id,"weapon_usp")
}
return PLUGIN_HANDLED
}
public team_spec(id)
{
new CsTeams:team = cs_get_user_team(id)
if (team == CS_TEAM_SPECTATOR)
{
return PLUGIN_HANDLED
}
else
{
entity_set_int(id,EV_INT_deadflag,DEAD_DISCARDBODY)
cs_set_user_team(id,CS_TEAM_SPECTATOR,CS_DONTCHANGE)
}
return PLUGIN_HANDLED
}
public player_respawn(id)
{
new CsTeams:team = cs_get_user_team(id)
if (team == CS_TEAM_SPECTATOR)
{
return PLUGIN_HANDLED
}
else if (!is_user_alive(id))
{
cs_user_spawn(id)
give_item(id,"weapon_knife")
give_item(id,"weapon_usp")
give_item(id,"weapon_usp")
give_item(id,"weapon_usp")
}
return PLUGIN_HANDLED
}Without the messages :)
wait, where do u put this?
how to remove ability to start timer in free look mode?
if (!is_user_alive(id)) return
ty PrEn1uMz
respawn-control (from kz_jump_plugin) doesn't work with it =/
What should I do to make it working?
set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET)
Didn't know the corpses were a message, amazing!!!
lol didnt know it too oO i always used sth like this to remove those bodys afster
if( pev( plr, pev_deadflag ) == DEAD_DYING )
set_pev( plr, pev_framerate, 2.0 )What should I do to go on my last checkpoint after "say /ct"?
sry, i dont get how to remove ability to start timer in free look mode, where should i put in
if (!is_user_alive(id)) return
Originally posted by botanikyssry, i dont get how to remove ability to start timer in free look mode, where should i put in
if (!is_user_alive(id)) return
you should edit your climbing plugin (prokreedz, climbtimer, some custom etc...)
Originally posted by ian.cammarataset_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET)
Didn't know the corpses were a message, amazing!!!
quite funny indeed:D
Please log in to post replies.