Raised This Month: $ Target: $400
 0% 

Hitzone Manipulation Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kronos
Junior Member
Join Date: Jan 2006
Old 03-15-2006 , 17:47   Hitzone Manipulation Plugin
Reply With Quote #1

I created a hitzone manipulation plugin, that every x seconds, as defined by amx_dodgetime <time> removes a hitzone at random.
I was wondering if there was errors in the scripts, because even though it compiled fine, I'm not sure it actually sets out what I intended it to do.
One of the things I'm not sure about is my "for" loop. Can anyone help me in refining this code?

Code:
/* Plugin Name: amx_dodge Author: Kronos Commands: amx_dodge <name> - Allows user to dodge bullets (AKA Hitzone Manipulation) CVARs: amx_dodgetime <time> - Defines how fast user dodges the bullets. Credits: Thanks to Kensai for his Regen Code Changelog: v1.0 - First version */
Kronos is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-16-2006 , 02:05  
Reply With Quote #2

assuming your numbers are correct (127, 191, etcetera), then it should work. if you want to "refine" your for loop, you could try this:

Code:
new players[32], num, i; get_players(players,num,"a"); for(i=0;i<num;i++) {    // perform actions on: players[i] -- assume they are both connected and alive }
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
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 16:32.


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