/spec /ct

Started by eMTi
02/01/2008 19:46
Page 1 of 1
eMTi02/01/2008 19:46

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 :)

st0ka02/01/2008 21:37

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

eMTi02/01/2008 23:05

ahh thx alot.
just deleted the msgs :)

st0ka02/01/2008 23:48(edited 02/01/2008 23:49)

sorry delete pls my inet fucked up :/

st0ka02/01/2008 23:49

#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 :)

demeNted16/01/2008 00:28

wait, where do u put this?

t4l26/01/2008 11:23

how to remove ability to start timer in free look mode?

PrEn1uMz26/01/2008 11:44(edited 26/01/2008 11:44)

if (!is_user_alive(id)) return

t4l26/01/2008 16:03

ty PrEn1uMz

Silver_Ghost15/02/2008 21:04

respawn-control (from kz_jump_plugin) doesn't work with it =/
What should I do to make it working?

ian.cammarata16/02/2008 19:27

set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET)

Didn't know the corpses were a message, amazing!!!

SchlumPF16/02/2008 20:06

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 )

Silver_Ghost17/02/2008 20:04

What should I do to go on my last checkpoint after "say /ct"?

botanikys17/02/2008 20:13

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

st0ka18/02/2008 13:26

Originally posted by botanikys
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

you should edit your climbing plugin (prokreedz, climbtimer, some custom etc...)


Originally posted by ian.cammarata
set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET)

Didn't know the corpses were a message, amazing!!!

quite funny indeed:D

Page 1 of 1

Please log in to post replies.