| $atplace(variable,pool,place)
This function will return the userid of the player at the place of
variable. This will tell you who is 1st place in a certain category,
or 2nd or whatnot. See the example.
Example:
| $atplace() example |
# Create a player command to return their place among kills in the game.
on pcmd_place cmd { mykplace = $place($pk.e,all,k.e); /say_resp * You are ranked $(pmykplace)$#a overall in kills currently.; # if this player isnt first place, show them who is if ($pmykplace > 1) /say_resp * $($atplace(k.e,all,1),n) is in first with $($atplace(k.e,all,1),k.e); };
|
|
|