The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawn in one place !
Author Message
tyllneas
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #1
Spawn in one place !
Hello again ! I have Question . Is there some
command to teleport all Clients in one place ?
if it is can anybody tell me !
11-03-2012 08:43 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Spawn in one place !
serv.allclients go britain

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
11-03-2012 09:28 AM
Find all posts by this user Like Post Quote this message in a reply
tyllneas
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #3
RE: Spawn in one place !
(11-03-2012 09:28 AM)Extreme Wrote:  serv.allclients go britain

TY But is there any command who spawns all offline Clients to ??
11-03-2012 10:02 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Spawn in one place !
hmm
maybe
serv.allplayers go britain
not sure

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
11-03-2012 10:25 AM
Find all posts by this user Like Post Quote this message in a reply
tyllneas
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #5
RE: Spawn in one place !
(11-03-2012 10:25 AM)Extreme Wrote:  hmm
maybe
serv.allplayers go britain
not sure

No its not ! but TY anyway !
Mby there need some SCP create ?

If somebody know Plz tell me !
(This post was last modified: 11-03-2012 10:32 AM by tyllneas.)
11-03-2012 10:31 AM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #6
RE: Spawn in one place !
PHP Code:
[FUNCTION MoveOfflinePLayersToo]
FORPLAYERS 7000
    
IF !<ISONLINE>
        
GO <ARGS>
    ENDIF
ENDFOR 

To use this type in game .MoveOfflinePLayersToo Britain or .MoveOfflinePLayersToo Cove etc
11-03-2012 06:40 PM
Find all posts by this user Like Post Quote this message in a reply
tyllneas
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #7
RE: Spawn in one place !
(11-03-2012 06:40 PM)Barnabus Wrote:  
PHP Code:
[FUNCTION MoveOfflinePLayersToo]
FORPLAYERS 7000
    
IF !<ISONLINE>
        
GO <ARGS>
    ENDIF
ENDFOR 

To use this type in game .MoveOfflinePLayersToo Britain or .MoveOfflinePLayersToo Cove etc

Barnabus, Ty All Works Perfektly !
11-03-2012 07:08 PM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #8
RE: Spawn in one place !
To Be honest that is a bad thing to do because you end up with many players on one tile.

The solution would be to make a filing system or more a tiling system.

First let pic a location to put all the offline players, personally I would use another map or I would put them in the ocean far off land. You can decide were the first file or tile will be located, for the purposes of this example I will just call the start coords as X and Y, you need to set them yourself
for example:
green acres would be
PHP Code:
[DEFNAME OfflineFilingSystem]
StartLocation_X   5104 
StartLocation_Y   1251 

Another major concern here is what happens when the player logs in, maybe you want him to go back to the place you first took him from before you filed / tiled him.

PHP Code:
[DEFNAME OfflineFilingSystem]
StartLocation_X   X
StartLocation_Y   Y

[FUNCTION MoveOfflinePLayersToo]
LOCAL.RowNumber=<EVAL StartLocation_X>
FORPLAYERS 7000
    
IF !<ISONLINE>
        
LOCAL.OfflinePlayerCount=<LOCAL.OfflinePlayerCount>+1
        TAG
.LastAtTheseCoords=<P>
        
GO <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_X>>
        
LOCAL.RowNumber=<EVAL StartLocation_X 1>
    ENDIF
ENDFOR
SERV.LOG <EVAL <LOCAL.OfflinePlayerCount>> players have been filed from <EVAL StartLocation_X>,<EVAL StartLocation_Ytoo  <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_Y

Then I suppose on login you would check to see if a player is at the coords <TAG.LastAtTheseCoords> and if not move him there.

ON=@Login
If <P> != <TAG.LastAtTheseCoords>
GO <TAG.LastAtTheseCoords>
ENDIF
(This post was last modified: 11-03-2012 07:25 PM by Barnabus.)
11-03-2012 07:14 PM
Find all posts by this user Like Post Quote this message in a reply
tyllneas
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #9
RE: Spawn in one place !
It means thei fly to the localation when their gos Offline ?
11-03-2012 09:27 PM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #10
RE: Spawn in one place !
Yes you could do that also just tag them with their filed location after
they have been placed there in the loop.

Code:
FORPLAYERS 7000
    IF !<ISONLINE>
        LOCAL.OfflinePlayerCount=<LOCAL.OfflinePlayerCount>+1
        TAG.LastAtTheseCoords=<P>
        GO <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_X>>
        TAG.FilledLocation=<P>
        LOCAL.RowNumber=<EVAL StartLocation_X + 1>
    ENDIF
ENDFOR

On the Login you would have to remeber to remove the last location
PHP Code:
ON=@Login
    
If <TAG0.LastAtTheseCoords>
        IF <
P> != <TAG.LastAtTheseCoords>
            
GO <TAG.LastAtTheseCoords>
            
TAG.LastAtTheseCoords=             
        ENDIF
    ENDIF 

Then on logoff if you wanted to send them all back to the same tiles.

PHP Code:
ON=@Logoff
    
If <TAG0.FilledLocation>
        
TAG.LastAtTheseCoords=<P>
        IF <
P> != <TAG.FilledLocation>
            
GO <TAG.FilledLocation>     
        ENDIF
    ENDIF 

With something like that you could keep all players filed somewhere. they are ok in a row because you only see so many per screen, if you have them all in the same screen or worse all on the same tile you might have trouble using allshow.
11-03-2012 10:18 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)