Raised This Month: $ Target: $400
 0% 

is there a specating team?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-25-2006 , 20:25   Re: is there a specating team?
Reply With Quote #1

where would they spawn? or it would be fun if you mixed them with t and ct when they spawn
k007 is offline
Send a message via MSN to k007
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 06-26-2006 , 00:44   Re: is there a specating team?
Reply With Quote #2

k007..

WHAT?


You confuse me man..He was asking about doing commands on spec ppl..anyway, they spawn in any spawnpoint on the map..just use CSDM and switch to spec team to see.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 06-27-2006 , 20:31   Re: is there a specating team?
Reply With Quote #3

i have no idea how to script

new players[32], num, i;
get_players(players, num, "ce", "SPECTATOR");
for(i = 0; i < num; i++)
client_cmd(players[i], "say hello, world");

so where do i add this

and will the commands be @SPECTATOR or SPECTATOR

-about spawning, spectators spawn @ terrorist spawn points
bots shoot spectators thou --->
"spectators can kill both ct and t
ct + t can kill spectators" (lol team # 3)
spawned spectators are the same as a team player (kill, pickup weapon)
there is no buy zone for spectators
spectators look like counter terrorists (1)
in capture the flag, the spectator is like on the CT team
when u aim at spectators, they are gray (hud) instead of red or blue
spectators cant kill spectators (tk off)
spectators are not affected by round start (stay where they are and dont teleport to spawn)
spectators needs to be mannually spawned (wont respawn at T when they die)

Last edited by kp_uparrow; 06-27-2006 at 20:39.
kp_uparrow is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 06-27-2006 , 20:35   Re: is there a specating team?
Reply With Quote #4

can someone edit this so a command can be issued to "spectators team"

--file attached at bottom

//----------------------------------------------------------------------------------------------
#include <amxmodx>
#include <amxmisc>
#include <fun>
//----------------------------------------------------------------------------------------------
public plugin_init()
{
register_plugin("Admin Revive II","0.1","SniperBeamer")
register_cvar("amx_revivemsg","1")
register_concmd("amx_revive","admin_revive",A DMIN_LEVEL_A,"<authid, nick, @team or #userid>")
}
//----------------------------------------------------------------------------------------------
public admin_revive(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED

new arg[32]
read_argv(1,arg,31)

if (arg[0]=='@')
{
new plist[32],pnum
get_players(plist,pnum,"e",arg[1])
if (pnum==0)
{
console_print(id,"[AMXX] No clients in such team @CT or @TERRORIST")
return PLUGIN_HANDLED
}
for (new i=0; i<pnum; i++)
{
if (!(get_user_flags(plist[i])&ADMIN_IMMUNITY))
{
new ids[3]
num_to_str(plist[i],ids,2)
spawn(plist[i])
set_task(0.1,"revivePl",0,ids,2)
}
}
console_print(id,"[AMXX] Revived the %ss",arg[1])
if (get_cvar_num("amx_revivemsg"))
{
if (equali(arg[1],"CT")) set_hudmessage(0,20,220,-1.0,0.30,0,6.0,6.0,0.5,0.15,1)
else set_hudmessage(220,20,0,-1.0,0.30,0,6.0,6.0,0.5,0.15,1)
show_hudmessage(0,"The %ss have been revived!",arg[1])
}
}
else
{
new pName[32],player = cmd_target(id,arg,3)
if (!player) return PLUGIN_HANDLED
new ids[3]
num_to_str(player,ids,2)
spawn(player)
set_task(0.1,"revivePl",0,ids,2)
get_user_name(player,pName,31)
console_print(id,"[AMXX] Revived %s",pName)
if (get_cvar_num("amx_revivemsg"))
{
set_hudmessage(0,200,0,-1.0,0.30,0,6.0,6.0,0.5,0.15,1)
show_hudmessage(0,"%s has been revived!",pName)
}
}

return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------
public revivePl(ids[])
{
new id = str_to_num(ids)
spawn(id)
if (get_user_team(id)==1)
{
give_item(id,"weapon_knife")
give_item(id,"weapon_glock18")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
}
else
{
give_item(id,"weapon_knife")
give_item(id,"weapon_usp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
}
}
//----------------------------------------------------------------------------------------------
Attached Files
File Type: sma Get Plugin or Get Source (admin_revive.sma - 552 views - 2.7 KB)
kp_uparrow is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-30-2006 , 13:22   Re: is there a specating team?
Reply With Quote #5

Just use @SPECTATOR
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode