Raised This Month: $12 Target: $400
 3% 

if model name...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 06-07-2018 , 12:52   if model name...
Reply With Quote #1

my problem is it works for custom models too for different named.. i use custom models too and i need to check custom models. what could i do ?
PHP Code:
GetModelNameByIndex(GetClientViewModelIndex(client), ModelNamesizeof(ModelName))
if (
strcmp(ModelName,"*/weapons/v_snip_awp.mdl"))//i use v_test.mdl for awp model for example still get it v_snip_awp.mdl
    
{
        
PrintToChatAll("TEST")
        return 
Plugin_Stop
    
}

edit:it works for all weapons, how can i check what model does he using ? can somebody show me ?

Last edited by undead52; 06-07-2018 at 16:14.
undead52 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode