Hello !
How do I increase by 10 units the player's speed? For example if he is holding a knife, he will move with 250 units, i want to make that 260. If he's having an AWP, he's having 220 i think, i want to make it 230.
I need to implement this in a VIP plugin.
How do I increase by 10 units the player's speed? For example if he is holding a knife, he will move with 250 units, i want to make that 260. If he's having an AWP, he's having 220 i think, i want to make it 230.
I need to implement this in a VIP plugin.
Код:
public OnPlayerSpawn(id)
{
if(!is_user_alive(id) || !is_user_vip(id))
return
rg_set_user_armor(id, 100, ARMOR_VESTHELM)
rg_give_item(id, "weapon_deagle")
rg_set_user_bpammo(id, WEAPON_DEAGLE, 35)
rg_give_item(id, "weapon_hegrenade")
rg_give_item(id, "weapon_flashbang")
rg_set_user_bpammo(id, WEAPON_FLASHBANG, 2)
set_entvar(id, var_gravity, 750.0 / 800)
set_entvar(id, var_maxspeed, ?????
}
public OnScoreAttrib(iMsgId, iMsgDest, iMsgEnt)
{
if(is_user_vip(get_msg_arg_int(1)))
set_msg_arg_int(2, ARG_BYTE, (1<<2))
}
bool:is_user_vip(id)
return !!(get_user_flags(id) & VIP_FLAG)