Quote:
Originally Posted by xPaw
Register the CurWeapon event, and in the function fix the speed.
|
Someone had to be VERY busy...
PHP Code:
public GiveStuff( id ) {
if( is_user_alive( id ) ) {
strip_user_weapons( id )
give_item( id, "weapon_flashbang" );
give_item( id, "weapon_smokegrenade" );
give_item( id, "weapon_knife" );
give_item( id, "weapon_usp" );
new iUsp = find_ent_by_owner( -1, "weapon_usp", id );
if( iUsp ){
cs_set_weapon_ammo( iUsp, 10 );
}
Event_CurWeapon_Active( id )
new iCurWeapon = read_data(2)
if( iCurWeapon != g_iCurWeapon[id] )
{
g_iCurWeapon[id] = iCurWeapon
set_user_maxspeed(id, 270.0)
}
}
}
I did everything by this:
http://forums.alliedmods.net/showpos...02&postcount=5
__________________