Quote:
Originally Posted by ConnorMcLeod
You passed player id.
|
Yes but, that was after (for testing). I tried with the weapon id.
Edit:
look:
PHP Code:
public unblock(id)
{
blocked[id] = false;
new Float:maxspeed = 123.123
new weapon = get_pdata_cbase(id,373)
ExecuteHam(Ham_CS_Item_GetMaxSpeed,weapon,maxspeed)
new class[30]
pev(weapon,pev_classname,class,charsmax(class))
client_print(id,print_chat,"Max speed %f",maxspeed)
client_print(id,print_chat,"Weapon %s",class);
//engfunc(EngFunc_SetClientMaxspeed,id,maxspeed)
return PLUGIN_HANDLED;
}
Result:
Code:
Max speed 123.123001
Weapon weapon_knife
(I've gave a random value to the var maxspeed just to be sure that it wasn't returning 0.0)
__________________