Raised This Month: $ Target: $400
 0% 

Add item in shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
f0xZ
Junior Member
Join Date: Jan 2010
Location: UA (Volnogorsk)
Old 12-19-2010 , 11:42   Add item in shop
Reply With Quote #1

Hi
I have deathrun shop
but I would like to add item in shop - 'buy life'
thanks =]

PS Here's a piece of script that can give life

Code:
public CmdGiveLifes(id, level, id2) 
{ 
    if(get_user_flags(id) & ADMIN_LSET) 
    { 
        new s_Name[32], s_Amount[5]; 

        read_argv(1, s_Name, charsmax (s_Name)); 
        read_argv( 2, s_Amount, charsmax(s_Amount)); 

        new i_Target = cmd_target(id, s_Name, 2); 

        if(!i_Target) 
        { 
            client_print(id, print_console, "(!) Player not found"); 
            return PLUGIN_HANDLED; 
        } 

        g_Lifes[i_Target] = g_Lifes[i_Target] + max(0, str_to_num(s_Amount)); 
        CmdShowlifes(i_Target); 

        return PLUGIN_HANDLED; 
    } 

    client_print ( id, print_console, "You have no access!" ); 

    return PLUGIN_HANDLED; 
}

sorry for my english
Attached Files
File Type: sma Get Plugin or Get Source (Deathrun_Shop.sma - 501 views - 34.3 KB)
File Type: sma Get Plugin or Get Source (DeathrunManager.sma - 507 views - 25.5 KB)

Last edited by f0xZ; 12-19-2010 at 11:44.
f0xZ is offline
Send a message via ICQ to f0xZ
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 06:35.


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