using the following code
PHP Code:
public fwdPlayerResetMaxSpeedPost(id)
{
new iClass = g_XP[id][Class];
new iRank = g_XP[id][Rank];
new weapon = get_user_weapon(id);
if(iClass == CLASS_NONE)
return HAM_IGNORED;
if(!weapon)
return HAM_IGNORED;
new szWeaponName[32];
get_weaponname(weapon, szWeaponName, charsmax(szWeaponName));
client_print(id, print_chat, "[%s] Speed Changed Weapon: %s", g_szPrefixName, szWeaponName);
}
it prints the previous weapon.. If i currently have AK47 Switch to Glock it prints AK47..
and so every one knows its a post hook. Any ideas why it "resets" before the weapon actually changes??
Also would setting a task be a work around? (Ways to check for rapid switching so not to create 200 set tasks lol)