Raised This Month: $ Target: $400
 0% 

How to give xp away and need some menu help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 11-17-2010 , 08:54   Re: How to give xp away and need some menu help
Reply With Quote #2

Maybe give us your code, so it will be little easier to help you, instead of making everything by ourselves.

Ad 1.

PHP Code:
public give_xp(givergetteramount)
{
    new 
giName[32], geName[32]
    
get_user_name(givergiNamecharsmax(giName))
    
get_user_name(gettergeNamecharsmax(geName))
    if(
exp[giver] >= amount)
    {
        
exp[giver] = exp[victim] - amount
        exp
[getter] = exp[stealer] + amount
        
        client_print
(0print_chat"%s gave %s %d xp."giNamegeNameamount)
    }
    else if(
exp[giver] < 100)
    {
        
exp[getter] = + exp[giver]
        
exp[giver] = 0
        
        client_print
(giverprint_chat"You can give only %d xp."exp[giver])
        
        
client_print(0print_chat"%s gave %s %d xp."giNamegeNameexp[giver])
        

    }

Ad 2.
What chooses do you want to have in this menu?

Last edited by Gadzislaw007; 11-17-2010 at 08:58.
Gadzislaw007 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 11:17.


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