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

Feature Request NPC Shop need Natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 03-03-2013 , 16:35   NPC Shop need Natives
Reply With Quote #1

forward Store_OnBuyItem(client, itemid, itemname, category, credits, credits left)
forward Store_OnShopCmd(client)
forward Store_OnBuyFailed(client, error)

native Store_LockShopCmd(client)
native Store_UnLockShopCmd(client)
native Store_IsShopCmdUnlocked(client)
native Store_GetRandomItem(client=0, afford=true)

Last edited by zipcore; 03-05-2013 at 18:34.
zipcore is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-03-2013 , 16:57   Re: NPC Shop need Natives
Reply With Quote #2

Quote:
Originally Posted by zipcore View Post
- lock/unlock purchase of items

And will be good add a native like OnBuyItem(itemid, client) and the option of block action


For example:

PHP Code:
public OnBuyItem(itemidclient)
{
if(
GetClientTeam(client) != 2)
   return 
Plugin_Handled// the client can't buy the item

else
   return 
Plugin_Continue// the client can buy the item

__________________
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
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 03-03-2013 , 17:12   Re: NPC Shop need Natives
Reply With Quote #3

1.1.1-alpha is definitely going to be a natives release. Post more natives and forwards you need (or don't need).
__________________

Last edited by alongub; 03-03-2013 at 17:12.
alongub is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 03-04-2013 , 02:40   Re: NPC Shop need Natives
Reply With Quote #4

Quote:
Originally Posted by alongub View Post
1.1.1-alpha is definitely going to be a natives release. Post more natives and forwards you need (or don't need).
hrhr

Last edited by zipcore; 03-06-2013 at 02:44.
zipcore 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 00:35.


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