Raised This Month: $32 Target: $400
 8% 

Solved get Model native


Post New Thread Reply   
 
Thread Tools Display Modes
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
XSlayer
Member
Join Date: Dec 2021
Old 08-01-2022 , 00:03   Re: get Model native
Reply With Quote #2

Solved!

PHP Code:
public __getClientMODEL()
{              
    
set_string2__Player_MDL[get_param(1)], get_param(2) );

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

       
entity_set_model__Avatar[Client], MDL ); 

Last edited by XSlayer; 08-01-2022 at 00:25.
XSlayer is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-01-2022 , 02:33   Re: get Model native
Reply With Quote #3


PHP Code:
public __getClientMODEL()
{              
    
set_string2__Player_MDL[get_param(1)], get_param(3) );

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
XSlayer
Member
Join Date: Dec 2021
Old 08-01-2022 , 21:42   Re: get Model native
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post

PHP Code:
public __getClientMODEL()
{              
    
set_string2__Player_MDL[get_param(1)], get_param(3) );

yeah my bad i didnt write it correctly

Last edited by XSlayer; 08-01-2022 at 21:43.
XSlayer is offline
Reply



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 00:12.


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