1.1 --- a/scripting/dm_basics.sp Mon Jun 25 23:43:20 2007 +0000
1.2 +++ b/scripting/dm_basics.sp Tue Jun 26 00:03:54 2007 +0000
1.3 @@ -2,6 +2,7 @@
1.4 * dm_basics.sp
1.5 * Base CS:S DM admin/control functions.
1.6 * This file is part of CS:S DM, Copyright (C) 2005-2007 AlliedModders LLC
1.7 + * by David "BAILOPAN" Anderson, http://www.bailopan.net/cssdm/
1.8 *
1.9 * This program is free software; you can redistribute it and/or
1.10 * modify it under the terms of the GNU General Public License
1.11 @@ -205,9 +206,25 @@
1.12 return Plugin_Stop;
1.13 }
1.14
1.15 +public Action:Timer_Welcome(Handle:timer, any:userid)
1.16 +{
1.17 + new client = GetClientOfUserId(userid);
1.18 +
1.19 + if (!client || !IsClientInGame(client))
1.20 + {
1.21 + return Plugin_Stop;
1.22 + }
1.23 +
1.24 + PrintToChat(client, "[CSSDM] Counter-Strike Source: Deathmatch (version %s)", CSSDM_VERSION);
1.25 + PrintToChat(client, "[CSSDM] Visit http://www.bailopan.net/cssdm/ to download.");
1.26 +
1.27 + return Plugin_Stop;
1.28 +}
1.29 +
1.30 public OnClientPutInServer(client)
1.31 {
1.32 g_DeathTimes[client] = 0.0;
1.33 + CreateTimer(10.0, Timer_Welcome, GetClientUserId(client));
1.34 }
1.35
1.36 public Action:DM_OnClientDeath(client)