Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fun>
- #define PLUGIN "Auto grenade every XY sec"
- #define VERSION "1.0"
- #define AUTHOR "mforce"
- #define TIME_IN_FLOAT (20.0)
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- set_task(TIME_IN_FLOAT, "granatadas", _, _, _, "b")
- }
- public granatadas() {
- new players[32], num, tempid
- get_players(players, num, "ac")
- for(new i = 0; i < num; i++) {
- tempid = players[i]
- if(!user_has_weapon(tempid, CSW_HEGRENADE))
- give_item(tempid, "weapon_hegrenade")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement