Raised This Month: $ Target: $400
 0% 

Spawn Protection


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Agression Terrpr
Member
Join Date: Jun 2015
Location: Lithuania
Old 04-04-2016 , 06:31   Re: Spawn Protection
Reply With Quote #3

Quote:
Originally Posted by Kowalsky View Post
Hook HAM_Spawn and give user godmode if he has the "spawn protection item" every time he spawns.

Also I suggest using pcvars instead of get_cvar_... They are way faster.
You can also cache cvars every round or in plugin init, that would be the better way.

Also you might want to define a task id and use it id + TASKID. You are using user's id as task's id. As a result if other plugins have such task id could conflict.
Thanks
Agression Terrpr is offline
Send a message via Skype™ to Agression Terrpr
 



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:06.


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