Hello!
I know this has been already asked and helped, i found the topics, but couldn't mix it into my script:S
Could anyone help me making this code working:
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 );
}
new iCurWeapon = read_data(2)
if( iCurWeapon != g_iCurWeapon[id] )
{
g_iCurWeapon[id] = iCurWeapon
set_user_maxspeed(id, 270.0)
}
}
}
Atm this maxspeed isn't working at all. It worked untill i tried to make it to change player's maxspeed permentaly not untill weapon change. So could anyone make it working even if player changes weapons.
+karma
TY!
__________________