Raised This Month: $ Target: $400
 0% 

Sentry need to add validation!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-17-2014 , 14:27   Re: Sentry need to add validation!
Reply With Quote #10

Quote:
Originally Posted by aron9forever View Post
go to the line, and add above the line if(!is_user_alive(id)) return PLUGIN_HANDLED

so if you have at lne 521
xxx
createsentryhead(id)
xxx

make it

xxx
if(!is_user_alive(id)) return PLUGIN_HANDLED
createsentryhead(id)
xxx


also check index, if it's not "id" and it's something like "target "player" "iplayer" or whatever, use that
Sorry, but there is not so simple ... There are already conditions:

Code:
xxx
           if(!is_user_connected(creator))
	   {
521                   sentry_detonate(ent, true, false)
		   return
	   }
xxx
Code:
xxx
	      // Put the last sentry in the deleted entity's place
	       if(0 > (g_sentriesNum - 1) > MAXSENTRIES) return
988	       g_sentries[i] = g_sentries[g_sentriesNum - 1]
xxx
Xaleer is offline
Send a message via Skype™ to Xaleer
 



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 09:35.


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