Raised This Month: $32 Target: $400
 8% 

Respawn Count


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danistone
Junior Member
Join Date: Jan 2016
Old 01-30-2016 , 20:12   Respawn Count
Reply With Quote #1

Hi
Someone add a respawn count plz
limit to 3 respawns only.

Last edited by Danistone; 02-07-2016 at 12:44.
Danistone is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-31-2016 , 03:53   Re: Respawn Count
Reply With Quote #2

Added cvar: zp_respawn_limit 3

The player respawn count will reset on new round or on disconnect if you uncomment the following specified line.

Code:
public client_disconnect(id) {     // Remove tasks on disconnect     remove_task(id+TASK_RESPAWN)         // Uncomment this if you want the respawn count to reset on disconnect     // This could be abused by the players if you spawn them after they join the server     // (they could reconnect and bypass the respawn limit in that case) //  g_iCountSpawn[id] = 0; }
Attached Files
File Type: sma Get Plugin or Get Source (zp50_deathmatch.sma - 486 views - 4.9 KB)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 01-31-2016 , 05:37   Re: Respawn Count
Reply With Quote #3

If uncommented, it will affect other players who join on that slot
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Danistone
Junior Member
Join Date: Jan 2016
Old 01-31-2016 , 22:13   Re: Respawn Count
Reply With Quote #4

Thank you ..
Danistone 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 17:04.


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