how to make a plugin run once for a client which connects to the server.
i m new to script writing i need a code(string) which make a plugin run only once when a player connects to server and then it should stop for that player either it worked or not it should stop runing as to stop
SZ_GetSpace: overflow on netchan->message WARNING: reliable overflow for MS plz help need urgent attention |
Re: how to make a plugin run once for a client which connects to the server.
Explain exactly what you are trying to do.
|
Re: how to make a plugin run once for a client which connects to the server.
I think i know what you mean, i made this a while back. It could give an idea of how to do it.
PHP Code:
|
Re: how to make a plugin run once for a client which connects to the server.
Quote:
|
Re: how to make a plugin run once for a client which connects to the server.
PHP Code:
PHP Code:
Just "if ( bool )" for true or "if ( !bool )" for false. ( Also works for variables if you wanna check if it is zeroed, "!" ) And in the spawn function there should always be an alive check, the spawn function gets called once on connect aswell, so in this case... the bool will be true before he spawns for the first time. |
Re: how to make a plugin run once for a client which connects to the server.
Quote:
PHP Code:
|
Re: how to make a plugin run once for a client which connects to the server.
He explained why. Read the whole post.
Quote:
|
| All times are GMT -4. The time now is 12:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.