How to stay the effect of speed on all round and only leave when the player go to another team ...
PHP Code:
case 0:
{
if( HasSpeed[ id ] )
{
allready_have( id );
return PLUGIN_HANDLED;
}
if( whichmoney < get_pcvar_num( gSpeedCost ) )
{
dont_have( id );
return PLUGIN_HANDLED;
}
fm_set_user_maxspeed( id, get_pcvar_float( gSpeedCvar ) );
client_print( id, print_chat, "%L", id, "DRSHOP_SPEED_ITEM" );
fm_set_user_money( id, whichmoney - get_pcvar_num( gSpeedCost ) );
client_sound_play( id );
HasSpeed[ id ] = true;
}
Regards.