This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-10-2017 , 15:57   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #81

Okay Thanks i like your shop it's great

here is all the .sma guns i have and some others i have only .amxx with commande add it if you can if you can't no problem but it will be great if you add this guns and update the post with zip of this guns because so many are shearching cso guns for cs 1.6

Attached Files
File Type: zip cso .sma guns for shop.zip (145.6 KB, 90 views)
yas17sin is offline
Send a message via ICQ to yas17sin
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-12-2017 , 13:13   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #82

@OciXCrom check this please
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-12-2017 , 13:37   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #83

I will check it when I have time to get on my computer. I have more important stuff than editing 30 plugins for free at the moment.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-12-2017 , 17:55   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #84

okay sorry i just want to know if you did see it but if you are busy and you can't make it just don't do it thanks for your great plugins waiting for more

Last edited by yas17sin; 01-12-2017 at 17:56.
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-14-2017 , 10:35   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #85

Here are the first 4. I don't have time for the other ones. You can try and edit them your self.
Attached Files
File Type: zip cshop.zip (20.9 KB, 106 views)
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-15-2017 , 21:17   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #86

Thanks you so much and sorry for taking from your time.

P.S: can you give me a empty example on how and what should i add and delete and what to edit to make a item or gun work with the shop please not a edited gun i want just a empty to be easy for teach and thanks again.

Last edited by yas17sin; 01-15-2017 at 21:33.
yas17sin is offline
Send a message via ICQ to yas17sin
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-16-2017 , 10:48   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #87

Quote:
Originally Posted by yas17sin View Post
Thanks you so much and sorry for taking from your time.

P.S: can you give me a empty example on how and what should i add and delete and what to edit to make a item or gun work with the shop please not a edited gun i want just a empty to be easy for teach and thanks again.
Either go to the scripting help section for - obviously - scripting help

Or either go to the Suggestions/Reqeusts section in to request to edit this plugin.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-16-2017 , 11:06   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #88

Quote:
Originally Posted by Napoleon_be View Post
Either go to the scripting help section for - obviously - scripting help

Or either go to the Suggestions/Reqeusts section in to request to edit this plugin.
i just ask for a empty example on what i need to add to a gun code or item to get it work with the shop

Last edited by yas17sin; 01-16-2017 at 11:10.
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-16-2017 , 15:14   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #89

1. Add this where all of the #includes are:

PHP Code:
#include <customshop> 
----------------------------------------
2. Add this under all the #include lines:

PHP Code:
additem ITEM_SOME_WEAPON 
(you can name it whatever you want)
----------------------------------------
3. Add this in plugin_precache():

PHP Code:
ITEM_SOME_WEAPON cshop_register_item("some_weapon""Some Very Cool Weapon"160001
16000 is the price and 1 is the limit. You can change all of the parameters in the function.

*if there is no plugin_precache() in the code, add the entire function:

PHP Code:
public plugin_precache()
{
    
ITEM_SOME_WEAPON cshop_register_item("some_weapon""Some Very Cool Weapon"160001)

----------------------------------------
4. Locate the code that registers the command that gives the weapon in plugin_init(). For example:

PHP Code:
register_clcmd "get_at4""give_at4"); 
Remove that line (or simply comment it with "//").
----------------------------------------
5. Locate the function that you just deleted. From Step #4 it's "give_at4" and it looks like this:

PHP Code:
public give_at4(id)
{
    
// Some code...

Change the function's name to cshop_item_selected(id, item) and in the beginning of the function add this:

PHP Code:
public cshop_item_selected(iditem)
{
    if(
item != ITEM_SOME_WEAPON)
        return

    
// The rest of the code remains the same...

----------------------------------------
6. Find out how the weapon is removed from the player. For example, the at4cs plugin uses this line to remove it:

PHP Code:
g_had_at4cs[id] = 
According to that line, create the following function:

PHP Code:
public cshop_item_removed(iditem)
{
    if(
item == ITEM_SOME_WEAPON)
    {
        
g_had_at4cs[id] = 0
    
}

__________________

Last edited by OciXCrom; 01-16-2017 at 16:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-16-2017 , 16:05   Re: OciXCrom's Custom Shop 3.5 + API
Reply With Quote #90

okay thanks now thats a very cool examples add it to spoiler and to main post it might help other no scripter to add more guns i will try now thanks
yas17sin is offline
Send a message via ICQ to yas17sin
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 04:29.


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