Raised This Month: $51 Target: $400
 12% 

Release Store Release [1.1 Final] [Sourcemod 1.6 or lower]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-30-2013 , 14:44   Re: [ANY] Store (1.0.0-alpha)
#11

I made the first module, yay
Timer module that gives money each time you finish a map, based on a algorithm. - https://forums.alliedmods.net/showth...20#post1883620
__________________
retired

Last edited by shavit; 01-30-2013 at 15:07.
shavit is offline
deathkilla
Senior Member
Join Date: Mar 2011
Old 01-30-2013 , 14:52   Re: [ANY] Store (1.0.0-alpha)
#12

OH SEXY MAMA!

trying this shit out right now!

Thanks a shitton!
__________________
Elite Gamers
Visit us:www.Elite-Gamers.org
deathkilla is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 01-30-2013 , 15:08   Re: [ANY] Store (1.0.0-alpha)
#13

Good stuff with this. We've been using a private store plugin for a while, but a more open source option with the community helping one another would be tremendous. We will give this a test run on a test server. Might even be able to make an importer script for those who are using Zeph's plugin if at all possible. Once again, really good work!
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 01-30-2013 , 15:12   Re: [ANY] Store (1.0.0-alpha)
#14

Quote:
Originally Posted by shavit View Post
I made the first module, yay
Timer module that gives money each time you finish a map, based on a algorithm. - https://forums.alliedmods.net/showth...20#post1883620
Awesome, added to the 2nd post.
__________________
alongub is offline
deathkilla
Senior Member
Join Date: Mar 2011
Old 01-30-2013 , 16:17   Re: [ANY] Store (1.0.0-alpha)
#15

Could you elaborate on how to install SMJansson. Quite confusing since none of the directory match up.
__________________
Elite Gamers
Visit us:www.Elite-Gamers.org
deathkilla is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 01-30-2013 , 16:20   Re: [ANY] Store (1.0.0-alpha)
#16

Quote:
Originally Posted by deathkilla View Post
Could you elaborate on how to install SMJansson. Quite confusing since none of the directory match up.
https://forums.alliedmods.net/attach...7&d=1340554215

^Click this. Drop files into exts folder.
__________________
Fearts is offline
deathkilla
Senior Member
Join Date: Mar 2011
Old 01-30-2013 , 16:42   Re: [ANY] Store (1.0.0-alpha)
#17

Quote:
Originally Posted by Fearts View Post
https://forums.alliedmods.net/attach...7&d=1340554215

^Click this. Drop files into exts folder.
Oh brother, you made me sound stupid... Was fiddling round with the other files that had SDK, Pawn, and extension :/

Thanks mate
__________________
Elite Gamers
Visit us:www.Elite-Gamers.org
deathkilla is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-30-2013 , 17:07   Re: [ANY] Store (1.0.0-alpha)
#18

The store is fashionable, even being store plugins private, it was time of that a store plugin were released.


If this plugin is evolving satisfactorily I will change to him and I will make plugins for this plugin
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
mickael002
Senior Member
Join Date: Jul 2010
Old 01-30-2013 , 17:40   Re: [ANY] Store (1.0.0-alpha)
#19

Quote:
Originally Posted by Franc1sco View Post
The store is fashionable, even being store plugins private, it was time of that a store plugin were released.


If this plugin is evolving satisfactorily I will change to him and I will make plugins for this plugin
Yes, good initiative.

--

I'm newbie on scripting, can you help me for add "Models" for that plugins ?

I'm follow the tutoriel https://github.com/alongubkin/store/...tems-for-Store

And my code actualy is :

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <store>

new Handle:g_modelsPaths INVALID_HANDLE;

public 
OnPluginStart()
{
    
g_modelsPaths CreateTrie();
    
Store_RegisterItemType("store"OnEquipOnEquipAttributesLoad);
}

// This will be called when the attributes are loaded.
public OnEquipAttributesLoad(const String:itemName[], const String:attrs[])
{
    
PrecacheModel(attrs);
    
SetTrieString(g_modelsPathsitemNameattrs);
}

// This will be called when players use our item in their inventory.
public bool:OnEquip(clientitemIdbool:equipped)
{    
    if (
equipped)
    {
        
decl String:modelDisplayName[STORE_MAX_DISPLAY_NAME_LENGTH];
        
Store_GetItemDisplayName(itemIdmodelDisplayNamesizeof(modelDisplayName));
        
        
PrintToChat(client"%t""Unequipped item"modelDisplayName);
        return 
true;

        
decl String:modelName[STORE_MAX_NAME_LENGTH];
        
Store_GetItemName(itemIdmodelNamesizeof(soundName));

        
SetEntityModel(clientmodelName);
        
        return 
true;
    }
    else
    {
        new 
title = -1;
        if (!
GetTrieValue(g_titlesNameIndexnametitle))
        {
            
PrintToChat(client"%t""No item attributes");
            return 
false;
        }
        
        
g_clientTitles[client] = title;
        
        
decl String:modelDisplayName[STORE_MAX_DISPLAY_NAME_LENGTH];
        
Store_GetItemDisplayName(itemIdmodelDisplayNamesizeof(modelDisplayName));
        
        
PrintToChat(client"%t""Equipped item"modelDisplayName);
        
        return 
true;
    }

I don't no if its works, can you help me ?

Last edited by mickael002; 01-30-2013 at 18:27.
mickael002 is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 01-30-2013 , 18:18   Re: [ANY] Store (1.0.0-alpha)
#20

Absolutely BEAUTIFUL. I have been waiting for a store plugin for tf2 for so long.
__________________
NameUser is offline
Send a message via Skype™ to NameUser
Closed Thread



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 14:52.


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