AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [REQ] Auto open cells (https://forums.alliedmods.net/showthread.php?t=229966)

Snitch 11-17-2013 15:48

[REQ] Auto open cells
 
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


Gasa 11-17-2013 23:00

Re: [REQ] Auto open cells
 
new ent = -1

while( ( ent = engfunc( EngFunc_FindEntityByString, ent, "classname", "func_door" )
dllfunc( DLLFunc_Use, ent, 0 );

hornet 11-17-2013 23:54

Re: [REQ] Auto open cells
 
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.

Snitch 11-18-2013 17:10

Re: [REQ] Auto open cells
 
Quote:

Originally Posted by hornet (Post 2062210)
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?

simanovich 11-19-2013 15:23

Re: [REQ] Auto open cells
 
Quote:

Originally Posted by Snitch (Post 2062629)
what diffrent my code, from ur?

should be work?

ient == -> ient =


All times are GMT -4. The time now is 23:21.

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