Raised This Month: $ Target: $400
 0% 

Solved get Model native


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XSlayer
Member
Join Date: Dec 2021
Old 07-31-2022 , 23:32   get Model native
Reply With Quote #1

hi i wanted to create a native that gets the player mdl

in one plug:

PHP Code:
stock setPlayerMDL(Clientmodel[])
{
      
formatex(__Player_MDL[Client], 63"models/player/%s/%s.mdl"modelmodel);

        
set_pdata_string(Client1420model, -120);
    
entity_set_model(Client__Player_MDL[Client]);
}
public 
__getClientMODEL()
{     
        return 
__Player_MDL[get_param(1)]; // how to get the formatex previously?

in other plug:

PHP Code:
        static MDL[64];
        
getClientMODELClientMDL63 );

       
entity_set_model__Avatar[Client], MDL ); 

Last edited by XSlayer; 08-01-2022 at 00:07.
XSlayer 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 15:42.


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