Raised This Month: $ Target: $400
 0% 

Free For All, without CSDM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SuperDuper
Member
Join Date: May 2006
Location: na
Old 05-21-2006 , 23:10   Free For All, without CSDM
Reply With Quote #1

Does anybody know a code that will give a "FFA" match that doesnt need CSDM to run, and that wont give you a negative score??? If this is possible and you know how could you please help me out?

Thanks!
__________________
[Team.Profit] Profit' <LDR>. Our server owns!

CS:CZ or DIE
SuperDuper is offline
Send a message via AIM to SuperDuper Send a message via MSN to SuperDuper Send a message via Yahoo to SuperDuper
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-22-2006 , 08:49  
Reply With Quote #2

I'm not really good at the message blocking, but the worst case scenario is your chat area gets spammed every time you shoot a teammate.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("FFA","1.0","Hawk552")         register_cvar("amx_ffa","0")         register_event("DeathMsg","fnEventDeathMsg","a")     register_event("SayText","fnEventSayText","a") } public fnEventDeathMsg() {     new iAttacker = read_data(1),iVictim = read_data(2)     if(iAttacker && get_user_team(iAttacker) == get_user_team(iVictim) && get_cvar_num("amx_ffa"))         set_user_frags(iAttacker,get_user_frags(iAttacker) + 2) } public fnSayText() {     if(!get_cvar_num("amx_ffa"))         return PLUGIN_CONTINUE             new szData[32]     read_data(1,szData,31)         if(containi(szData,"a teammate") != -1)         return PLUGIN_HANDLED             return PLUGIN_CONTINUE }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
BAILOPAN
Join Date: Jan 2004
Old 05-22-2006 , 08:56  
Reply With Quote #3

You cannot accomplish "perfect FFA" without going into assembly. Don't attempt it in a plugin. You will encounter three problems, and only be able to solve at most two:
- Punishments, such as text/kicking/negative scoring.
- Damage reduction (it's 35%).
- Proper scoreboard display

If there was enough demand I'd move the ability from CSDM and into the cstrike module, but I don't think there is.

I might be able to make the CSDM module have "FFA without respawn," though.
__________________
egg
BAILOPAN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-22-2006 , 08:58  
Reply With Quote #4

Quote:
Originally Posted by BAILOPAN
You cannot accomplish "perfect FFA" without going into assembly. Don't attempt it in a plugin. You will encounter three problems, and only be able to solve at most two:
- Punishments, such as text/kicking/negative scoring.
- Damage reduction (it's 35%).
- Proper scoreboard display

If there was enough demand I'd move the ability from CSDM and into the cstrike module, but I don't think there is.

I might be able to make the CSDM module have "FFA without respawn," though.
Yeah, what I wrote was just a temporary thing that lets you actually gain score but nothing else. I should probably add the message sent around to update the scoreboard.

Thanks for the better clarification.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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:34.


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