Raised This Month: $ Target: $400
 0% 

help with adding


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-26-2021 , 18:52   Re: help with adding
Reply With Quote #1

Quote:
Originally Posted by itoxicreal View Post
the plugin dosent work and those things are causing it, so if someone can fix it, it would mean alot
Create the natives ex: native zp_cs_get_user_money( id ), native zp_cs_set_user_money( id, amount )
Code:
public plugin_natives() {     register_native("zp_cs_get_user_money", "_get_money", 1)     register_native("zp_cs_set_user_money", "native_set_money", 1)     register_native("zp_get_user_exp", "native_get_exp", 1)     register_native("zp_set_user_exp", "native_set_exp", 1) } public give_money_exp(id) {         if(g_HasMoneynEXP[id]) {         client_print(id, print_chat, "[CSO] Retry again after map changes to get more Money&Exp!");         return PLUGIN_HANDLED;     }         new value = random_num(20000, 100000)     new exp = random_num(200, 1500)  it is not possible to use native from register     zp_cs_set_user_money(id, zp_cs_get_user_money(id) + Values[value]);     zp_set_user_exp(id, zp_get_user_exp(id) + Exps[exp]);     client_print(id, print_chat, "[CSO]  You have just received %d $ and  exp, try again after map change!", Values[value], Exps[exp]);     g_HasMoneynEXP[id] = true;         return PLUGIN_HANDLED; }

Show "_get_money" function

Edit: if the plugin already has these native or include then no one can help you without see the full code
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 12-26-2021 at 18:56.
Supremache 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 11:30.


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