10-31-2013, 01:02
I want a mod with nothing in it. I want the init() onPlayerConnect() onPlayerSpawned() and that's it. I tried doing that myself but I got an error.
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
init()
{
level thread onPlayerConnect();
level.allowupdate = true;
}
onPlayerConnect()
{
self endon("disconnect");
for(;;)
{
level waittill( "connected", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}
(10-31-2013, 02:42)DidUknowiPwn Wrote: [ -> ]That should do it.Code:#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
init()
{
level thread onPlayerConnect();
level.allowupdate = true;
}
onPlayerConnect()
{
self endon("disconnect");
for(;;)
{
level waittill( "connected", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
level endon("game_ended");
for(;;)
{
level waittill( "connected", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}
(11-01-2013, 23:55)CheeseToast Wrote: [ -> ]Both of those scripts give me an error.