AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   cmd_target(id, arg, 3) (https://forums.alliedmods.net/showthread.php?t=61229)

kp_uparrow 09-24-2007 18:22

cmd_target(id, arg, 3)
 
im trying to slap myself

i have immunity

cmd_target(id, arg, 3) (the flag 3)

can slap myself


cmd_target(id, arg, 7) (the flag 7)

cannot slap myself




cmd_target - Locates a player id by specific parameters.
Syntax:
cmd_target ( id, const arg[], flags = 1 )
Type:
Stock
Notes:
id is the player who called the command.
arg is the argument the player input.

Flags:
1 - obey immunity
2 - allow yourself
4 - must be alive
8 - can't be bot




by adding the must be alive flag, i cant slap myself with immunity while without the must be alive flag i can slap myself with immunity



is this a bug?

potatis_invalido 09-24-2007 19:57

Re: cmd_target(id, arg, 3)
 
I'll try this tomorrow, and see if it is the same for me. Now I must sleep.

Roach 09-25-2007 10:28

Re: cmd_target(id, arg, 3)
 
Which version of amxx are you using?


All times are GMT -4. The time now is 07:58.

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