Added some defines for cmd_target's filter system (for less cryptic code)
Changed all immunity obeying commands to allow for self execution - amb633
This commit is contained in:
@ -165,7 +165,7 @@ public cmdRandom(id,level,cid) {
|
||||
if (read_argc()>1) { // person is specified..
|
||||
new arg[32]
|
||||
read_argv(1,arg,31)
|
||||
new player = cmd_target(id,arg,1)
|
||||
new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF)
|
||||
if (!player) return PLUGIN_HANDLED
|
||||
new name[32],name_targ[32];
|
||||
new auth[32],auth_targ[32];
|
||||
@ -231,7 +231,7 @@ public cmdReadyRoom(id,level,cid) {
|
||||
if (read_argc()>1) { // person is specified..
|
||||
new arg[32]
|
||||
read_argv(1,arg,31)
|
||||
new player = cmd_target(id,arg,1)
|
||||
new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF)
|
||||
if (!player) return PLUGIN_HANDLED
|
||||
new name[32],name_targ[32];
|
||||
new auth[32],auth_targ[32];
|
||||
@ -294,7 +294,7 @@ public cmdTeamTwo(id,level,cid) {
|
||||
if (read_argc()>1) { // person is specified..
|
||||
new arg[32]
|
||||
read_argv(1,arg,31)
|
||||
new player = cmd_target(id,arg,1)
|
||||
new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF)
|
||||
if (!player) return PLUGIN_HANDLED
|
||||
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.");
|
||||
@ -322,7 +322,7 @@ public cmdTeamOne(id,level,cid) {
|
||||
if (read_argc()>1) { // person is specified..
|
||||
new arg[32]
|
||||
read_argv(1,arg,31)
|
||||
new player = cmd_target(id,arg,1)
|
||||
new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF)
|
||||
if (!player) return PLUGIN_HANDLED
|
||||
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.");
|
||||
|
Reference in New Issue
Block a user