Raised This Month: $51 Target: $400
 12% 

Solved [CS:GO] Autorespawn with lifes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-12-2017 , 14:27   [CS:GO] Autorespawn with lifes
Reply With Quote #1

Im looking for autorespawn with lifes, so "X" lifes per round.
__________________

Last edited by PinHeaDi; 11-16-2017 at 16:10.
PinHeaDi is offline
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Old 11-12-2017 , 18:40   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #2

You can try this if there are any features you want me to add just post back on here.
Attached Files
File Type: sp Get Plugin or Get Source (ar_respawn_lives.sp - 343 views - 3.3 KB)
alexr153 is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-12-2017 , 21:06   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #3

If you can help me with some things to add.

1. A spawnkill support, so if a player days for less than 2.0 second after he spawns a spawnkiller should be put on him, but [client], not global, since there're always some trolls.

2. And the second.. Is there a way to add a config to the plugin with the maps the plugin should be working? e.g If a map is in the list it should return true on MapOnList (for example) and false if the maps isn't in the list. Im asking for that because on some maps the checking which team has spawns and which not is buggy. I'm using the plugin in a MG server.
__________________
PinHeaDi is offline
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Old 11-12-2017 , 21:42   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #4

For sure, I'll try to get that done by today or later tomorrow.

Last edited by alexr153; 11-12-2017 at 22:00.
alexr153 is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-12-2017 , 22:10   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #5

Quote:
Originally Posted by alexr153 View Post
For sure, I'll try to get that done by today or later tomorrow.
Thank you very much.
__________________
PinHeaDi is offline
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Old 11-12-2017 , 22:40   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #6

Here this should be good
Attached Files
File Type: sp Get Plugin or Get Source (ar_respawn_lives.sp - 294 views - 5.5 KB)
File Type: cfg ar_respawn_maps.cfg (30 Bytes, 136 views)
alexr153 is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-12-2017 , 23:58   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #7

PHP Code:
 [ServerRespawning in 2.5 secondsLives remaining3.
 
[ServerRespawning in 2.5 secondsLives remaining3.
 
[ServerRespawning in 2.5 secondsLives remaining2.
 
[ServerRespawning in 2.5 secondsLives remaining1.
 
[ServerRespawning in 2.5 secondsLives remaining0. 
The respawn time is something I added, but it should but the lives remaining print. The "No more lives" print is never shown and sometimes the lives don't reset on new round. I tried that with sm_cvar mp_round_restart_delay 30, so maybe because of the big timing between End round and New round. I don't know. Ah... I think i get it.. Since it resets the End round event I spend the lives on the same event, so no lives on the new round, i think that's the case.

P.S.: Well, event with a normal reset of the lifes is still +1, so 3,2,1,0 and the no lives
__________________

Last edited by PinHeaDi; 11-13-2017 at 00:27.
PinHeaDi is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-14-2017 , 19:28   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #8

I fixed the issues above, but now there's another. The plugin only reads the last line, e.g only the last map from the config.

Code:
//Put new lines for other maps
mg_acrophobia_run_v1
mg_adev
mg_antique_course
mg_cartoon_course_v3_1
mg_course_ravine_final
mg_crash_bandicoot_course_v1
mg_cyber_course_v5
mg_damons_course_beta
mg_dans_course_remaster
mg_dev_galaxie_course_csgo
mg_dev_netrial_course
mg_dust_course_2_csgo_v1
mg_escape_castle_v3_fix
mg_gavle_course_v5
mg_lego_course_3_csgo
mg_metal_course_2
mg_metal_course_level
mg_metal_course_level_2
mg_minecraft_adventure_final_fix
mg_minecraft_course_JB_N1
mg_nimafa_3_final_v3
mg_nxr_course_csgo
mg_office_coursee_2012_fixed
mg_runordie_final
mg_savethebacon_course_final
mg_savetheisland_course_reskin
mg_saw_3_v1
mg_siberdev_2
mg_sky_realm_v3
mg_sonic_islands_v4
mg_switch_cource
mg_touchdev_course_fix
mg_tunnel_beta_cource
mg_office45_course
mg_pharaohs_tomb2_go_v3
mg_onetaprun_course_v2_d
mg_ancient_course_v2
mg_blood_sector_v1
mg_east_office_beta
mg_ghosts_cave_csgo
mg_halo_course_csgo
mg_heppy_dev_v1
mg_office_easy_course_csgo
mg_last_light_v3
__________________

Last edited by PinHeaDi; 11-14-2017 at 19:29.
PinHeaDi is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 11-15-2017 , 19:51   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #9

The problem still persist... The plugins still enables autorespawn only on the last map (last line) in the config.
__________________
PinHeaDi is offline
xFlane
AlliedModders Donor
Join Date: Nov 2017
Location: Israel
Old 11-18-2017 , 03:08   Re: [CS:GO] Autorespawn with lifes
Reply With Quote #10

fixed, try again.
should be working.
Attached Files
File Type: sp Get Plugin or Get Source (ar_respawn_lives.sp - 313 views - 5.6 KB)
xFlane is offline
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 15:33.


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