Raised This Month: $ Target: $400
 0% 

Change the natives?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-07-2013 , 12:10   Change the natives?
#1

PHP Code:
native hnsxp_get_user_xp(client);
 
native hnsxp_set_user_xp(clientxp);
 
stock hnsxp_add_user_xp(clientxp)
{
        return 
hnsxp_set_user_xp(clienthnsxp_get_user_xp(client) + xp);
}
 
stock hnsxp_sub_user_xp(clientxp)
{
        return 
hnsxp_set_user_xp(clienthnsxp_get_user_xp(client) - xp);

I want that to this:

PHP Code:
public plugin_natives()
{
    
register_native("pm_set_user_points""_set_user_points");
    
register_native("pm_get_user_points""_get_user_points");
    
register_native("pm_get_user_maxhealth""_get_user_maxhealth");
    
register_native("pm_add_user_points""_add_user_points");
    
register_native("pm_get_user_totalpoints""_get_user_totalpoints");

__________________
JailBreak & HNS
MrKiller2010 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 19:09.


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