AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is there a specating team? (https://forums.alliedmods.net/showthread.php?t=40188)

kp_uparrow 06-24-2006 16:06

is there a specating team?
 
is there a specating team?

there is team terrorists
@TERRORIST

there is team counter terrorists
@CT

---
is there a team spectating? like @SPEC ?

SubStream 06-24-2006 23:02

Re: is there a specating team?
 
Technically yes and its team 3.

1 = t
2 = ct
3 = spec

kp_uparrow 06-25-2006 19:01

Re: is there a specating team?
 
how would you issuse a commands to all spectators

Xanimos 06-25-2006 19:32

Re: is there a specating team?
 
The plugin would have to do that. It would have to be scripted in there.

v3x 06-25-2006 20:03

Re: is there a specating team?
 
Code:
new players[32], num, i; get_players(players, num, "ce", "SPECTATOR"); for(i = 0; i < num; i++)   client_cmd(players[i], "say hello, world");
I think that should work, although I dislike get_players.

k007 06-25-2006 20:25

Re: is there a specating team?
 
where would they spawn? or it would be fun if you mixed them with t and ct when they spawn

SweatyBanana 06-26-2006 00:44

Re: is there a specating team?
 
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.

kp_uparrow 06-27-2006 20:31

Re: is there a specating team?
 
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)

kp_uparrow 06-27-2006 20:35

Re: is there a specating team?
 
1 Attachment(s)
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")
}
}
//----------------------------------------------------------------------------------------------

Hawk552 06-30-2006 13:22

Re: is there a specating team?
 
Just use @SPECTATOR


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

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