View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 06-17-2012 , 00:35   Re: [CSS] PreciseShot
Reply With Quote #6

Quote:
Originally Posted by Xilver266 View Post
I don't get that error. Do yo installed SDK Hooks?
Quick tip!
(since your using the same stock IsValidClient stock i have (weird!))
Code:
    new String:g_Weapon[32];
    GetClientWeapon(attacker, g_Weapon, sizeof(g_Weapon));
    
    new String:g_WeaponName[32];
    GetConVarString(PSWeaponName, g_WeaponName, sizeof(g_WeaponName));
    
    if ( IsValidClient(attacker))
    {
You are executing a function on a client, that maynot even exsist, i suggest checking if the client is 'valid' before getting his weapon name.
Mitchell is offline