Raised This Month: $ Target: $400
 0% 

Terrorist survive frag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hnskind2007
Junior Member
Join Date: Dec 2020
Old 01-26-2021 , 11:23   Terrorist survive frag
Reply With Quote #1

Hey, can anyone make a simple plugin when terroist survive the round to give him a frag and message: You earned %i frag for surviving the round!

Last edited by hnskind2007; 01-26-2021 at 11:24.
hnskind2007 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-26-2021 , 11:48   Re: Terrorist survive frag
Reply With Quote #2

Those frags won't be registered in /rank so what's the point?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
hnskind2007
Junior Member
Join Date: Dec 2020
Old 01-26-2021 , 11:56   Re: Terrorist survive frag
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Those frags won't be registered in /rank so what's the point?
That's why i asked for, i am using your rank system
I will include the terrorist_survive_frag in RankSystem.ini where are the [XP Rewards]
I was though to use crxranks_give_user_xp(id, _, "terrorist_survive_frag") for this.

XP only for survived terrorist but no dead

Last edited by hnskind2007; 01-26-2021 at 12:19.
hnskind2007 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-26-2021 , 16:11   Re: Terrorist survive frag
Reply With Quote #4

So basically you want surviving terrorists to get XP and not frags?

Code:
#include <amxmodx> #include <crxranks> public plugin_init() {     register_plugin("CRXRanks: Reward Survivors", "1.0", "OciXCrom")     register_logevent("OnRoundEnd", 2, "1=Round_End") } public OnRoundEnd() {     new iPlayers[32], iPnum     get_players(iPlayers, iPnum, "ae", "TERRORIST")     for(new i; i < iPnum; i++)     {         crxranks_give_user_xp(iPlayers[i], _, "terrorist_survive_frag", CRXRANKS_XPS_REWARD)     } }

I will include such an option in the main plugin in the next update.
__________________

Last edited by OciXCrom; 01-26-2021 at 16:13.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
hnskind2007
Junior Member
Join Date: Dec 2020
Old 01-26-2021 , 16:20   Re: Terrorist survive frag
Reply With Quote #5

I will include such an option in the main plugin in the next update.[/QUOTE]

I will wait for him ;3
Thank you!
hnskind2007 is offline
hnskind2007
Junior Member
Join Date: Dec 2020
Old 01-27-2021 , 04:13   Re: Terrorist survive frag
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
So basically you want surviving terrorists to get XP and not frags?

Code:
#include <amxmodx> #include <crxranks> public plugin_init() {     register_plugin("CRXRanks: Reward Survivors", "1.0", "OciXCrom")     register_logevent("OnRoundEnd", 2, "1=Round_End") } public OnRoundEnd() {     new iPlayers[32], iPnum     get_players(iPlayers, iPnum, "ae", "TERRORIST")     for(new i; i < iPnum; i++)     {         crxranks_give_user_xp(iPlayers[i], _, "terrorist_survive_frag", CRXRANKS_XPS_REWARD)     } }
Ocix when the CT kill the last TT they had swaped teams and the XP goes for them
hnskind2007 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-27-2021 , 06:45   Re: Terrorist survive frag
Reply With Quote #7

Put it before the team swapping plugin in plugins.ini.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 18:19.


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