AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   add_user (https://forums.alliedmods.net/showthread.php?t=135503)

TheCompany 08-16-2010 21:38

add_user
 
What shall i do whit this. I am trying to add a Cash block to my blockmaker and for my Cash Mod and i got this.

PHP Code:

stock hnsxp_add_user_xp(clientxp)
{
    return 
cm_set_cash(clientcm_get_cash(client) + cm);


And i don't know what it shall stay on
PHP Code:

hnsxp_add_user_xp 

PHP Code:

public plugin_natives()
{
    
register_library("cashmod");
    
register_native("cm_get_cash""_get_cash");
    
register_native("cm_set_cash""_set_cash");



infek 08-17-2010 13:50

Re: add_user
 
You have to use "CashMods" Natives into your Blockmaker

TheCompany 08-17-2010 16:27

Re: add_user
 
What do you mean? I need help with this
PHP Code:

hnsxp_add_user_xp 

</span></span>

hleV 08-17-2010 17:01

Re: add_user
 
Code:
    return cm_set_cash(client, cm_get_cash(client) + cm);
>
Code:
    return cm_set_cash(client, cm_get_cash(client) + xp);

TheCompany 08-17-2010 20:18

Re: add_user
 
Omg i don't wan't the XP Block i wan't Cash Block.


All times are GMT -4. The time now is 21:52.

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