Raised This Month: $32 Target: $400
 8% 

[API] CS Reward v6.1 (21 Rewards)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-07-2014 , 07:33   [API] CS Reward v6.1 (21 Rewards)
Reply With Quote #1

[API]
CS Core + Reward v6.1

(21 Rewards + 4 Forwards)


Status:
UP-TO-DATE
(4/1/2015)



Contents:
Description
What new!
4 new forwards
How to use the "CS Core API"?
How to use the "Reward API"?
Reward API tutorial
List of CS Core API
List of Reward API
Example
Problems. ;)
Error 010: Invalid Function or Declaration?
How to disable the chat message?
Installation
Other features
Credits
To do list
Changelogs
Screenshots
Downloads
Other tutorials. ;)
1. How to configure cooldown for permanent reward? (New!)
2. RGB to color name mapping. Just visit this website to configure the values for the color. ;)
(New!)
Plugins using this API. ;)
1. Premium Member ;)
2. First Blood Bonus (ZP Compatible).
3. Free Weapon.
4.
Terrorist Ability.
5. Free Glow (ZP Compatible).
6. Last 2 Players.
7. Rewards Shop. ;)
8. CS Score.
9. Credit Time (Now, you will recieve credit for playing X amount of time in the server) (Just send me a personal message)
Donation. ;)

Description:Top

This plugin will allow you to give reward or bonus easily. Just use the CS Core API. As example, just download c_24.sma file to see how I'm using the CS Core API. ;)

What new!Top
Quote:
1. Invisibility reward.
2. Noclip reward.
3. Grenades reward.
4. Weapon reward.
5. Health reward.
6. Deadly shot reward.
7. God mode reward.
8. Glow reward.
9. Aura reward.
10. Armor reward.
11. Money reward.
12. Multi-jump reward.
13. Speed boost reward.
14. Unlimited clip reward.
15. Unlimited BP ammo reward.
16. No-recoil reward.
17. Line drawing reward. (This simulates a sort of ability by drawing a line between you and the enemy.) Screenshots. ;)
18. Ring indicator reward. (This ability start at enemy feet and expanded outwards into a much larger sort of ring.) Screenshots. ;)
19. Gravity reward. (New!)
20. Trail reward. (New!) Screenshots. ;)
21. Wall ability reward. (New!) (This ability allow player to penetrate the wall. It is not the same with no-clip.) Screenshots. ;)
Quote:
Deadly Shot is a firepower enhancement item. The user's firepower will be boosted to deal headshot damages and also score headshot kills.
4 New Forwards:Top
PHP Code:
/**
 * This is called during a player spawn
 * param id - ID of client
 */
forward cs_fw_spawn_post(id);

/**
 * This is called when a player becomes the last terrorists
 * param id - ID of client
 */
forward cs_fw_last_terrorist(id)

/**
 * This is called when a player becomes the last counter-terrorists
 * param id - ID of client
 */
forward cs_fw_last_counter(id)

/**
 * This is called when a player has drew the first blood
 * param victim - ID of client
 * param attacker - ID of client
 */
forward cs_fw_first_blood(victimattacker); 
If you want to see how to use this forward, just download the c_24.sma file.

How to use the "CS Core API"?Top

Just download the c_24.sma file to see how I'm using the CS Core API. ;)

Just say /core in your chat. Yet, this command only available for player that has specific flag. If you want to configure the flag, just open the c_24.sma file, then edit below part:
PHP Code:
// Configure which flag will have access to the reward menu
#define ADMIN_FLAG ADMIN_IMMUNITY 
Then, a menu will be opened such below screenshots:





How to use the "Reward API"?Top

Just download the c_24.sma file. You also can try the reward by yourself.

Just say /rm in your chat. Yet, this command only available for player that has specific flag. If you want to configure the flag, just open the c_24.sma file, then edit below part:
PHP Code:
// Configure which flag will have access to the reward menu
#define ADMIN_FLAG ADMIN_IMMUNITY 
Then, a menu will be opened such below screenshots:





"Reward API" tutorial:Top
-->
List of CS Core API:Top
-->
List of Reward API:Top
-->
Example. ;)Top
-->
Error 010: Invalid Function or Declaration?
Top


If you encountered this problem, it mean that you have edited the file and encoded it in the incorrect format. So the solution is:
-->
How to disable the chat message?Top

Now, there is an option to disable or enable custom chat message from the cs_reward.sma file. Just open the cs_reward.sma file, the edit this part:
PHP Code:
//Just uncomment 'CUSTOM_MESSAGE' if your want to enable custom message from cs_reward.sma
#define CUSTOM_MESSAGE 
Installation:Top
1. Just put the cs_core.inc in the include folder. This is crucial.

2. Next, compile the cs_core.sma file. Then, put the .amxx file in the plugin folder. If you just want to use the Reward API, no need to download this.

3. Then, compile the cs_reward.sma file. Then, put the .amxx file in the plugin folder. If you just want to use the CS Core API, no need to download this.

3. Lastly, just compile the c_24.sma file (if you want to test the reward) and put the .amxx file in the plugin folder to see how the CS Core API is working. This is just for example. If you just want to use the CS Core or Reward API in your code, no need to download this.

4. Or you can just use your creativity on how to give the reward to the players or using the forward. Have fun!
Other features:Top

All of the rewards has been designed to do below things:
1. Reset all rewards automatically when the player that recieved it is disconnet.

2. Reset all rewards automatically when the player that recieved it has been killed.

3. Reset all rewards automatically at new round.

4. Reset all rewards automatically at every respawn.

5. Prevent the reward from being given to dead player.

6. Prevent the reward from being given if the native is not being used correctly.
Credits:Top
Quote:
1. WBYOKOMO for his parachute API.
2. Kia for code helping.
3. Jhob94 for code helping and idea.
4. Dar2_Siders for his ideas.
5. v3x for line drawing method.
6. HamletEagle for code helping. ;)
7. Blizzard_87 for spending his time to teach me about API as I'm still newbie. ;)
8. ZP Dave Team for forward method.
9. Xalus for wall ability code. ;)
10. etc
To do list:Top
Quote:
If anyone have any suggestions, feel free to share it.
Changelogs:Top
-->
Screenshots:Top
-->

Downloads:Top
-->
Plugins using this API:Top
1. Premium Member ;)
2. First Blood Bonus (ZP Compatible).
3. Free Weapon.
4.
Terrorist Ability.
5. Free Glow (ZP Compatible).
6. Last 2 Players.
7. Rewards Shop. ;)
8. CS Score.
9. Credit Time (Now, you will recieve credit for playing X amount of time in the server) (Just send me a personal message)

Donation. ;)Top


Donate in EUR. ;)

Codes now is at GitHub:

Just visit this site. \o/
Attached Files
File Type: inc cs_core.inc (8.8 KB, 1416 views)
File Type: sma Get Plugin or Get Source (c_24.sma - 1774 views - 17.3 KB)
File Type: sma Get Plugin or Get Source (cs_core.sma - 1991 views - 6.1 KB)
File Type: sma Get Plugin or Get Source (cs_reward.sma - 2292 views - 64.4 KB)

Last edited by zmd94; 10-11-2015 at 12:36.
zmd94 is offline
 


Thread Tools
Display Modes

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 18:13.


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