Raised This Month: $ Target: $400
 0% 

Detecting entity inside a zone


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 06-28-2017 , 10:13   Re: Detecting entity inside a zone
Reply With Quote #1

Quote:
Originally Posted by Craxor View Post
Code:
return bool:(classname[0]=='p'&&classname[1]=='l'&&classname[3]=='y'&&classname[5]=='r');
It is already bool and you should check all 7 cells.
Code:
return classname[0] == 'p' && classname[1] == 'l' && classname[2] == 'a' && classname[3] == 'y' && classname[4] == 'e' && classname[5] == 'r' && classname[6] == EOS;
But easier and better just check for is_user_connected or is_user_alive or 1 <= player <= MaxPlayers (get_maxplayers()).
__________________

Last edited by PRoSToTeM@; 06-28-2017 at 10:14.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 23:08.


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