I believe this is what he's asking for:
Code:
public func_money(id, money1, money2, const command[], paramsnum )
{
if(cs_get_user_money(id) >= money1)
{
cs_set_user_money(id, cs_get_user_money(id) + money2, 0)
/* paramsnum is how many parameters your function will have take player index
** For example SetGlow .. paramsnum would be 1 ..
** To set enabled or disabled
*/
new Data[ sizeof paramsnum ];
Data[ 0 ] = 1; //this is the value you want glow to be in this example
set_task( 0.01, command, id, Data, sizeof Data );
}
else
{
NoMoney(id)
}
}
public SetGlow( enabled[], id )
{
if( enabled[ 0 ] )
{
//set glow
}
else
{
//remove glow
}
}
__________________