Raised This Month: $ Target: $400
 0% 

[REQ] Auto open cells


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 11-17-2013 , 15:48   [REQ] Auto open cells
Reply With Quote #1

I have code
/ freeday

Definition is open cages, it worked for me a few days ago, and now it does not work, do not open cages

PHP Code:
new ient = -1;
    
    while ((
ient == engfunc(EngFunc_FindEntityByString,ient,"classname","func_door")) > )
        
dllfunc(DLLFunc_Use,ient,0
Snitch is offline
Send a message via Skype™ to Snitch
Gasa
Senior Member
Join Date: Sep 2013
Old 11-17-2013 , 23:00   Re: [REQ] Auto open cells
Reply With Quote #2

new ent = -1

while( ( ent = engfunc( EngFunc_FindEntityByString, ent, "classname", "func_door" )
dllfunc( DLLFunc_Use, ent, 0 );
Gasa is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-17-2013 , 23:54   Re: [REQ] Auto open cells
Reply With Quote #3

Code:
new iEnt = -1;     while( ( iEnt = engfunc( EngFunc_FindEntityByString, iEnt, "classname", "func_door" ) ) )     dllfunc( DLLFunc_Use, iEnt, 0 );

However I recommend that you try to do or search for a lengthier method that also takes into account doors that are only near the terrorist spawn, instead of opening all doors.

Last edited by hornet; 11-17-2013 at 23:55.
hornet is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 11-18-2013 , 17:10   Re: [REQ] Auto open cells
Reply With Quote #4

Quote:
Originally Posted by hornet View Post
Code:
new iEnt = -1;      while( ( iEnt = engfunc( EngFunc_FindEntityByString, iEnt, "classname", "func_door" ) ) )     dllfunc( DLLFunc_Use, iEnt, 0 );


However I recommend that you try to do or search for a lengthier method that also takes into account doors that are only near the terrorist spawn, instead of opening all doors.
what diffrent my code, from ur?

should be work?
Snitch is offline
Send a message via Skype™ to Snitch
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-19-2013 , 15:23   Re: [REQ] Auto open cells
Reply With Quote #5

Quote:
Originally Posted by Snitch View Post
what diffrent my code, from ur?

should be work?
ient == -> ient =
__________________
simanovich 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 23:21.


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