View Single Post
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 08-16-2007 , 11:17   [Stocks] SStocks
Reply With Quote #1

SStocks

Includes:
PHP Code:
[sstocks.incUsing this will include other files like 'sourcemod.inc'.
#define COLOR_YELLOW 0x01
#define COLOR_NAME_TEAMCOLOR 0x02
#define COLOR_TEAMCOLOR 0x03
#define COLOR_GREEN 0x04
public EmptyHandler(Handle:menuMenuAction:actionparam1param2){}
#include <ss_basic>
#include <ss_checks>
#include <ss_clients>

[ss_basic.inc]
RestartGame(time=1)
Fail(const String:pname[], const String:format[], any:...)
Debug(const String:pname[], const String:fname[], const String:format[], any:...)
MessageToAll(const String:pname[], const String:format[], any:...)
MessageToOne(client, const String:pname[], const String:format[], any:...)

[
ss_checks.inc]
bool:CheckMod(const String:mod[])
bool:CheckPlugin(const String:pname[])
bool:CheckFile(const String:file_path[])
bool:CheckRequiredFile(const String:file_path[], const String:pname[])
bool:CheckDirectory(const String:directory_path[])
bool:CheckRequiredDirectory(const String:directory_path[], const String:pname[])

[
ss_clients.inc]
ClientData(client, const String:property[], const String:todo[], value=0)
ClientHealth(client, const String:todo[], value=0)
ClientMoney(client, const String:todo[], value=0)
SetClientSpeed(clientFloat:speed)
bool:HasClientFlag(clientAdminFlag:flagAdmAccessMode:mode=Access_Effective)
bool:HasClientFlagExt(clientAdminFlag:flagAdmAccessMode:mode=Access_Effective, const String:pname[], const String:format[], any:...)
CountClientsInTeam(teamindex)
CountAdmins(teamindex


Notes:
  • CheckPlugin uses "*_version" and "sm_*_version" ConVars to check if the plugin is loaded. I am trying to find better way to do this.
  • I tested all functions, but I am still not responsible if your computer blows up.

Thanks To:
  1. BAILOPAN -> CountAdmins()
Attached Files
File Type: rar DevKit 0.0.2.rar (273.6 KB, 833 views)
__________________

Last edited by Shaman; 08-25-2007 at 15:23.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman