![]() |
Online player search
Hey there, I'm a good scripter, but I've done next to nothing of online stuff. My question is, how do I go through the players in a level in a for loop? I do for (i=0;i<playerscount;i++) serverside and nothing happens, clientside and only I am affected. How do I access everyone in a level?
|
Quote:
In old gscript, it'll be something like this: PHP Code:
PHP Code:
|
Hmm... so say I wanted to make a weapon that searched through the room and killed everyone in it, it would be done like so?
PHP Code:
|
No it needs to be done serverside.
PHP Code:
|
Aha! I was wondering how a server would recieve a weaponfired flag. Thanks!
|
For future reference, players[i].hearts should work also (meaning you don't need the with() statement)
|
Quote:
|
Hmm... if a script that works suddenly doesn't work, and GS2 was recently installed onto the server, does that mean GS2 screwed it up?
|
Quote:
The new engine's compiler is a lot more picky. |
| All times are GMT +2. The time now is 10:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.