Raised This Month: $ Target: $400
 0% 

Some help...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
thEsp
BANNED
Join Date: Aug 2017
Old 08-15-2019 , 17:38   Re: Some help...
Reply With Quote #7

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> new const szOwnerSID[] = "..."; new const szKnifeModel[] = "models/{modelname}.mdl"; // CBasePlayerItem new const m_pPlayer = 41; public plugin_init() {      RegisterHam(Ham_Item_Deploy, "weapon_knife", "hamDeploy_post", 1); } public plugin_precache() {     precache_model(szKnifeModel); } public hamDeploy_post(iEnt) {     new id = get_pdata_cbase(iEnt, m_pPlayer, 4);     if(!id)         return;         new szUserSID[32];     get_user_authid(id, szUserSID, charsmax(szUserSID));     if(equal(szUserSID, szOwnerSID))         set_pev(id, pev_viewmodel2, szKnifeModel); }
Untested.
PS: Next time us a better title for your thread, instead of jabaiting the members.

Last edited by thEsp; 08-15-2019 at 17:48. Reason: 41 -> m_pPlayer
thEsp 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 17:25.


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