Quote:
Originally Posted by Shiina.Mashiro
Did you try to create a variable for get_user_maxspeed?
PHP Code:
new Float: g_oldspeed
PHP Code:
public cmd_invisible(id)
{
g_oldspeed = get_user_maxspeed(id)
...
}
PHP Code:
public RemoveInvisible(taskid)
{
...
set_user_maxspeed(id, g_oldspeed)
...
}
|
Ok,I try now,but during the ivisibility when change weapon I lose my speed immediately.
And I need that lasts throughout the all invisibility time.
I forgot to add
PHP Code:
register_event("CurWeapon", "EventCurWeapon", "be", "1=1")
Now works fine. Thank you.