Raised This Month: $ Target: $400
 0% 

[FUN] How to random frag all player's every 10sec?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ultimatgold
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 06-03-2018 , 21:25   Re: [FUN] How to random frag all player's every 10sec?
Reply With Quote #3

The trouble I can not write. I tried.
Please someone write to me.

Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","death","a")	
}
public death(id){
new killer = read_data(1)
new victim = read_data(2)
new fragnum = random_num(1,100)
if(killer != victim)
{
new players[32], num, player
get_players(players, num)
player = players[random(num)]
set_user_frags (player, get_user_frags(player)+fragnum)
}
return PLUGIN_HANDLED
}
Quote:
Originally Posted by fysiks View Post
You could set a repeating task for 600 seconds and execute code that does what you want to all the players.
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
 



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


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