AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Frag Game 1.7 (https://forums.alliedmods.net/showthread.php?t=87078)

M1R0n,M' 03-06-2009 12:16

Frag Game 1.7
 
37 Attachment(s)


.: Description :.
Players must gain x amount of frags(controlled by cvar),who first gains x amount of frags he wins the round!On the round start your frags/deaths set again to 0.If victim are killed,victim respawns for x amount of seconds(controlled by cvar).And for the example, if CT team player win,Terrors takes slay.


.: Cvars :.
amx_frags_game "1/0" // Plugin on/off // Default : 1
amx_frags_win "frags" // How much frags need to win. // Default : 15
amx_frags_respawn "Seconds" // Delay before respawning. // Default : 3
amx_frags_weaponpickup "1/0" // 1 - Block weapon pickup. 0 - no block. // Default : 1
amx_frags_respawnglow "1/0" // 1 - On. 0 - off. // Default : 1
amx_frags_glowtime "time" // Default : 2
amx_frags_c4 "1/0" // 1 - strip. 0 - not strip // Default : 1
amx_frags_winmoney "1/0" // 1 - give money. 0 - not give. // Default : 1 // Sorry for my english :D //
amx_frags_winmoneynum "money" // Default : 5000
amx_frags_lg_frags "on/off" // 1 - lost and got frags. 0 - not lost and not got.. :D
amx_frags_lost_num "Num" // Lost frags // Default : 1
amx_frags_got_num "Num" // Got frags // Default : 1

.: Change-Log :.

* 1.7
- In this version the HUD message telling about the winner was removed. Message in MOTD window added instead. Updated ML.

* 1.6
- Added check if player is alive after he joins team. If not - respawns him.

* 1.5
1)The code is optimized.
2)Added msg about who is leader.
3)When you kill player with knife you will get +1 frag, and the victim will loose his frag, all controled by cvars(like always) :)
4) Added prefix for msgs: #define PREFIX "[Frag Game] "
5) [Updated ML]

* 1.4
- More money will be given to a winner, controled by cvar. (amx_frags_winmoney , amx_frags_winmoneynum ).

* 1.3
- In this version added glow after respawn for 1-2 seconds, removed c4, all controled by cvar. ( amx_frags_respawnglow, amx_frags_glowtime, amx_frags_c4)

* 1.2
- Added respawn timer which will show the time left till your respawn. Also added weapon pickup blocking (controlled by CVAR - amx_frags_weaponpickup ).

* 1.1
- Fixed a little bug so now spectators wont respawn.

* 1.0
- First release.

xbatista 03-06-2009 12:18

Re: Frag Game
 
Yeah I like it! :wink:

xPaw 03-06-2009 12:20

Re: Frag Game
 
looks like gungame :D

DarkGod 03-06-2009 12:22

Re: Frag Game
 
Code:

[sv]
WIN = %s har vunnit!
RESPAWNED = * Aterupplivad *

Typo in txt file:

RESPAWED :arrow: RESPAWNED

M1R0n,M' 03-06-2009 12:28

Re: Frag Game
 
updated..:avast:

crazyeffect 03-06-2009 12:59

Re: Frag Game
 
Dutch translation:

Quote:

[nl]
WIN = %s heeft gewonnen!
RESPAWNED = * Terug Tot Leven Gebracht *

Korniz 03-06-2009 13:38

Re: Frag Game
 
gj miron :) :)

Jay-izi 03-06-2009 14:13

Re: Frag Game
 
M1R0n,M', finally you have done it :)
GJ!

KadiR 03-06-2009 14:37

Re: Frag Game
 
Quote:

[de]
WIN = %s hat gewonnen!
RESPAWNED = * Wiederbelebt *

One 03-06-2009 14:54

Re: Frag Game
 
Quote:

Originally Posted by M1R0n,M' (Post 775224)
Description:
Frags game,players must gain x amount of frags(controlled by cvar),who first gains x amount of frags he wins the round!On the round start your frags/deaths set again to 0.If victim are killed,victim respawns for x amount of seconds(controlled by cvar).And for the example, if CT team player win,Terrors takes slay.

Cvars:
amx_frags_game "1/0" // Plugin on/off // Default : 1
amx_frags_win "frags" // How much frags need to win. // Default : 15
amx_frags_respawn "Seconds" // Delay before respawning. // Default : 3

Change-Log:

* 1.0
- First release.

How about countdown? i mean there are many idiots & knows nothing. u could add an countdown to print/hudmessage or whatever the countdown.
nice idea, maybe i add this in ma new mod. could be funny

M1R0n,M' 03-07-2009 12:52

Re: Frag Game
 
Plugin updated v1.1 - Fixed a little bug so now spectators wont respawn.

crazyeffect 03-07-2009 12:59

Re: Frag Game
 
hehe :D

Ok

BOYSplayCS 03-08-2009 18:49

Re: Frag Game
 
I like the idea, good job.

+karma

M1R0n,M' 03-09-2009 05:06

Re: Frag Game
 
Thanks.. ;]p

sytremelaker 03-10-2009 12:21

Re: Frag Game
 
You should try making this for entire teams rather than just one player or a separate plugin that does teams.

M1R0n,M' 03-10-2009 12:29

Re: Frag Game
 
Quote:

Originally Posted by sytremelaker (Post 777820)
You should try making this for entire teams rather than just one player or a separate plugin that does teams.

What?? What??

sytremelaker 03-11-2009 23:31

Re: Frag Game
 
Instead of a single player reaching x amount of kills, why not combine the scores of everyone on one team so this becomes more team-based. So if CT#1 gets 5 kills and CT#2 gets 3 kills while the score needed to win is 10, there team score is 8 and they would need 2 more kills to win.

M1R0n,M' 03-12-2009 08:04

Re: Frag Game
 
Well, your idea isn't bad, but I've planned this plugin as that the winner is single player (like GunGame, there isn't such team feature).

BOYSplayCS 03-12-2009 08:53

Re: Frag Game
 
Maybe you could create a Team Mode and upload that .sma file into this thread.

M1R0n,M' 03-15-2009 12:11

Re: Frag Game
 
Plugin updated v1.2 - Added respawn timer which will show the time left till your respawn. Also added weapon pickup blocking (controlled by CVAR).

crazyeffect 03-15-2009 12:58

Re: Frag Game
 
1 Attachment(s)
Fixed Dutch [nl]

iNspiratioN 03-15-2009 14:25

Re: Frag Game
 
Good good :)

One 03-15-2009 17:08

Re: Frag Game
 
PHP Code:

RESPAWN_COUNTDOWN You will respawn in %i seconds 

PHP Code:

[de]
RESPAWN_COUNTDOWN Du wirst in %i sekunden wieder belebt 


M1R0n,M' 03-16-2009 11:58

Re: Frag Game
 
Plugin updated v1.3 - In this version added glow after respawn for 1-2 seconds, removed c4, all controled by cvar.

M1R0n,M' 03-16-2009 13:29

Re: Frag Game
 
Plugin updated v1.4 - More money will be given to a winner, controled by cvar. Updated fraggame.txt

crazyeffect 03-16-2009 13:32

Re: Frag Game
 
2 updates in 1 hour :D

Cool :D

+k

M1R0n,M' 03-16-2009 13:33

Re: Frag Game
 
hehe :wink:

hleV 03-17-2009 14:20

Re: Frag Game
 
Looks funny.

Arkshine 03-17-2009 21:05

Re: Frag Game
 
Hi, some suggestions.

- First, please, fix your indentation. Either use tab or spaces but not both at the same time. The result is quite a mess now.
- Cache the value of is_user_connected() ; it's not something it will change in-game. Use client_putinserver() + client_disconnect() + global var.
- Killed_Player() :
- Do the check if killer is a player just right after the cvar (status ) check.
- Cache the value of get_pcvar_num(g_WinMoneyNum).
- 0 -> LANG_PLAYER. Use the define.
- If not money, player will not be killed and thus respawning. Is it normal ?
- Since you're using Hamsandwich, use Ham_Touch, will be more efficient.
- Respawn() ; Instead of 4 and 3, use a #define or enum. Don't check if task exist, remove directly.
- fm_set_user_rendering ; using directly floats, like there.
- PLUGIN, VERSION, AUTHOR, use #define ; no need to create var.
- Try to keep always {}.

And others things, but toot tired. I will see after if you did some changes.

slpknt 03-18-2009 16:33

Re: Frag Game
 
Code:

[ru]
WIN = %s vijgral! Palucil + %d deneg
RESPAWNED = * Vozrazden *
RESPAWN_COUNTDOWN = Ti budesh vozrazden 4erez %i sekund.

change this please:
Code:

[ru]
WIN = %s viigral! Poluchil + %d deneg
RESPAWNED = * Vozrozhden *
RESPAWN_COUNTDOWN = Vi budete vozrazdeni cherez %i sekund.

This is grammatically correct + polite serious way.

fezh 03-19-2009 13:55

Re: Frag Game
 
Code:

[es]
WIN = %s ha ganado! Recibido + %s dinero
RESPAWNED = * Revivido *
RESPAWN_COUNTDOWN = Seras revivido en %i segundos.

Spanish translation, enjoy it.

M1R0n,M' 03-20-2009 14:26

Re: Frag Game
 
Plugin updated v1.5:
1)The code is optimized.
2)Added msg about who is leader.
3)When you kill player with knife you will get +1 frag, and the victim will loose his frag, all controled by cvars(like always) :)
4) Added prefix for msgs:#define PREFIX "[Frag Game] "
5) [Updated ML]
6) Credits xPaw ; ThaRadiance ;

crazyeffect 03-20-2009 14:49

Re: Frag Game
 
2 Attachment(s)
Here,

I fixed Dutch and i fixed other languages too,

Else you got ML_NOTFOUND errors!


Translations needed: (They are 50% done)
Quote:

SV
DE
RU

prabalgarina 03-20-2009 15:04

Re: Frag Game
 
[bg]
WIN = %s specheli!Toi poluchi + %d pari
RESPAWNED = * Respawn-nati *
RESPAWN_COUNTDOWN = Shte budete respawn-nati sled %i sekundi.
KILLED_KNIFE_LOST = Bqhte ubiti ot %s s noj i zagubihte %d frag'ove.
KILLED_KNIFE_GOT = Vie ubihte %s s noj i poluchihte %d frag/ove.
MOST_PLAYER = %s vodi!Toi ima %d fragove. ^nHe i mu trqbvat %d ohste za da specheli.

fezh 03-20-2009 18:08

Re: Frag Game
 
Updated Spanish Translation:
Code:

[es]
WIN = %s ha ganado! Recibido + %s dinero
RESPAWNED = * Revivido *
RESPAWN_COUNTDOWN = Seras revivido en %i segundos.
KILLED_KNIFE_LOST = Has sido asesinado por %s con cuchillo, y tu has perdido %d frag.
KILLED_KNIFE_GOT = Has asesinado a %s con cuchillo y has obtenido %d frag.
MOST_PLAYER =  %s esta liderando! el posee %d frags. ^nNecesita %d mas para ganar.


TheRadiance 03-21-2009 01:14

Re: Frag Game
 
M1R0n,M', where is the credits for helping? :D

M1R0n,M' 03-21-2009 02:21

Re: Frag Game
 
hehe, updated :D

iNspiratioN 03-21-2009 06:36

Re: Frag Game
 
Lithuanian Translation:

Code:

[lt] 
 WIN = %s laimėjo! Ir gavo + %d pinigu
 RESPAWNED = * Prisikele * 
 RESPAWN_COUNTDOWN = Jus busite prikelti po %i sekundziu. 
 KILLED_KNIFE_LOST = Jus buvote nuzudyti nuo %s su peiliu, ir jus netekote %d frago. 
 KILLED_KNIFE_GOT = Jus nuzudete %s su peiliu ir gavote %d frago. 
 MOST_PLAYER = %s yra pirmaujantis! jis turi %d fragu. ^nJam reikia %d daugiau kad laimetu.

Btw nice updates ;)

M1R0n,M' 03-21-2009 07:02

Re: Frag Game
 
Thank you.. ;-]

iNspiratioN 03-21-2009 08:18

Re: Frag Game
 
Your welcome ;D


All times are GMT -4. The time now is 19:59.

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