AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Free For All, without CSDM (https://forums.alliedmods.net/showthread.php?t=28756)

SuperDuper 05-21-2006 23:10

Free For All, without CSDM
 
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!

Hawk552 05-22-2006 08:49

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 }

BAILOPAN 05-22-2006 08:56

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.

Hawk552 05-22-2006 08:58

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.


All times are GMT -4. The time now is 16:34.

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