Quote:
Originally Posted by Visinescu
Does set_user_frags 100 always set 100 or adds on top of what the frags are at the moment?
|
The name itself tells you what it does.
Simple stock to
ADD user frags.
Code:
stock add_user_frags(id, amount) {
if(!is_user_connected(id))
return -1;
set_user_frags(id, get_user_frags(id) + amount)
}
Code:
stock add_user_frags(id, amount)
@id - Player Index
@amount - Amount of frags to add
@return - -1 if not player connected.
__________________