Fix for bug at15759, from devicenull

This commit is contained in:
David Anderson 2005-07-08 01:22:57 +00:00
parent de5eb6924a
commit 5d90ccf088

View File

@ -147,7 +147,7 @@ public cmdRandom(id,level,cid) {
if (read_argc()>1) { // person is specified.. if (read_argc()>1) { // person is specified..
new arg[32] new arg[32]
read_argv(1,arg,31) read_argv(1,arg,31)
new player = cmd_target(id,arg,5) new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED if (!player) return PLUGIN_HANDLED
new name[32],name_targ[32]; new name[32],name_targ[32];
new auth[32],auth_targ[32]; new auth[32],auth_targ[32];
@ -215,7 +215,7 @@ public cmdReadyRoom(id,level,cid) {
if (read_argc()>1) { // person is specified.. if (read_argc()>1) { // person is specified..
new arg[32] new arg[32]
read_argv(1,arg,31) read_argv(1,arg,31)
new player = cmd_target(id,arg,5) new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED if (!player) return PLUGIN_HANDLED
new name[32],name_targ[32]; new name[32],name_targ[32];
new auth[32],auth_targ[32]; new auth[32],auth_targ[32];
@ -280,7 +280,7 @@ public cmdTeamTwo(id,level,cid) {
if (read_argc()>1) { // person is specified.. if (read_argc()>1) { // person is specified..
new arg[32] new arg[32]
read_argv(1,arg,31) read_argv(1,arg,31)
new player = cmd_target(id,arg,5) new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED if (!player) return PLUGIN_HANDLED
if (g_Team[player]==2 || g_Team[player]==4 /*i think 4 is team 2 in ava..*/) { if (g_Team[player]==2 || g_Team[player]==4 /*i think 4 is team 2 in ava..*/) {
client_print(id,print_chat,"[AMXX] That user is already on team two."); client_print(id,print_chat,"[AMXX] That user is already on team two.");
@ -309,7 +309,7 @@ public cmdTeamOne(id,level,cid) {
if (read_argc()>1) { // person is specified.. if (read_argc()>1) { // person is specified..
new arg[32] new arg[32]
read_argv(1,arg,31) read_argv(1,arg,31)
new player = cmd_target(id,arg,5) new player = cmd_target(id,arg,1)
if (!player) return PLUGIN_HANDLED if (!player) return PLUGIN_HANDLED
if (g_Team[player]==1 || g_Team[player]==3 /*i think 3 is team 2 in mvm..*/) { if (g_Team[player]==1 || g_Team[player]==3 /*i think 3 is team 2 in mvm..*/) {
client_print(id,print_chat,"[AMXX] That user is already on team one."); client_print(id,print_chat,"[AMXX] That user is already on team one.");
@ -358,20 +358,24 @@ public cmdUnComm(id,level,cid) {
return PLUGIN_HANDLED_MAIN; return PLUGIN_HANDLED_MAIN;
} }
public ack_team_one(id) { public ack_team_one(id) {
engclient_cmd(id,"readyroom");
engclient_cmd(id,"readyroom"); engclient_cmd(id,"readyroom");
engclient_cmd(id,"jointeamone"); engclient_cmd(id,"jointeamone");
return PLUGIN_HANDLED_MAIN; return PLUGIN_HANDLED_MAIN;
} }
public ack_team_two(id) { public ack_team_two(id) {
engclient_cmd(id,"readyroom");
engclient_cmd(id,"readyroom"); engclient_cmd(id,"readyroom");
engclient_cmd(id,"jointeamtwo"); engclient_cmd(id,"jointeamtwo");
return PLUGIN_HANDLED_MAIN; return PLUGIN_HANDLED_MAIN;
} }
public ack_ready_room(id) { public ack_ready_room(id) {
engclient_cmd(id,"readyroom");
engclient_cmd(id,"readyroom"); engclient_cmd(id,"readyroom");
return PLUGIN_HANDLED_MAIN; return PLUGIN_HANDLED_MAIN;
} }
public ack_auto_assign(id) { public ack_auto_assign(id) {
engclient_cmd(id,"readyroom");
engclient_cmd(id,"readyroom"); engclient_cmd(id,"readyroom");
engclient_cmd(id,"autoassign"); engclient_cmd(id,"autoassign");
return PLUGIN_HANDLED_MAIN; return PLUGIN_HANDLED_MAIN;