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

OciXCrom's Custom Shop + API


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-01-2019 , 08:12   Re: OciXCrom's Custom Shop + API
Reply With Quote #11

Quote:
Originally Posted by mousesports View Post
How do I advertise on the server for this plugin? I want to know all the players that there is an order / shop
Any advertisement plugin will do the job... Or just use this:

Code:
#include <amxmodx> #include <cromchat> new g_pAdvertFrequency public plugin_init() {     register_plugin("Shop Message in Chat", "1.0", "OciXCrom")     g_pAdvertFrequency = register_cvar("shop_advert_frequency", "120") } public plugin_cfg() {     set_task(get_pcvar_float(g_pAdvertFrequency), "advertise_le_shop", .flags = "b") } public advertise_le_shop() {     CC_SendMessage(0, "&x04* &x01YO everyone, &x03listen up&x01! Type &x04/shop &x01to buy stuff!") }

Cvar: shop_advert_frequency = 120 -- how many seconds between advertisements.
__________________

Last edited by OciXCrom; 11-01-2019 at 08:13.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 15:43.


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