ta for that BlueRaja
Ive taken a look at the code but where does the code distinguish between an entered players name and steamid
I followed the code down to this bit
Code:
else { //szVictim is a single player
iPlayersTemp[0] = cmd_target(id,szVictim, Flags&(MUST_BE_ALIVE|CANT_BE_BOT))
//^^Will handle OBEY_IMMUNITY and ALLOW_SELF later on
iPlayersNumTemp = (iPlayersTemp[0]?1:0)
//Only set iPlayersNumTemp to 1 if cmd_target was successful
}
so will cmd_target find a player based on their name OR steamid ??
The doc for cmd_target isnt the greatest work of literary art :/
Quote:
cmd_target - Locates a player id by specific parameters.
Syntax:
cmd_target ( id, const arg[], flags = 1 )
|
does that mean arg[] can be a steamid or a player name (i notice your code doesnt seem to allow for part of a name to be entered...or am i reading the code wrong - sorry if i am)
Ive only just started looking at small so im piecing things together
Thanks for any reply