noobcannonlol
01-03-2008, 02:01 PM
http://www.mediafire.com/?1ke0xi0vyt4
sm_restartround restarts the round
nc_restartround is a server command in case any mapper wants to use point_servercommand (whatever) to force a round restart to simulate objectives
plugin source
#include <sourcemod>
#include <sdktools>
new Handle:hGameConf;
new Handle:hRestartRound;
public Plugin:myinfo =
{
name = "ZP:S Restart Round",
author = "noob cannon lol/mrdeathllama",
description = "restarting round",
version = "1.0",
url = "http://www.gamesyn.com"
}
public OnPluginStart()
{
hGameConf = LoadGameConfigFile("noobcannon.zps")
StartPrepSDKCall(SDKCall_Static)
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "RestartRound");
hRestartRound = EndPrepSDKCall();
RegServerCmd("nc_restartround", RestartRound)
RegAdminCmd("sm_restartround", rr_command, ADMFLAG_KICK, "Restart the round")
}
public Action:rr_command(client, args)
{
PrintToChatAll("[SM] Restarting the round...")
RestartRound(args)
return Plugin_Handled
}
public Action:RestartRound(args)
{
SDKCall(hRestartRound)
}reverse engineered signature
"Games"
{
"zps"
{
"Signatures"
{
"RestartRound"
{
"library" "server"
"windows" "\x83\xEC\x08\x56\x57\x6A\x00\x2A\x2A\x2A\x2A\x2A\x 2A\x2A\x2A\x2A\x2A\x8B\xF8\x85\xFF"
}
}
}
}
sm_restartround restarts the round
nc_restartround is a server command in case any mapper wants to use point_servercommand (whatever) to force a round restart to simulate objectives
plugin source
#include <sourcemod>
#include <sdktools>
new Handle:hGameConf;
new Handle:hRestartRound;
public Plugin:myinfo =
{
name = "ZP:S Restart Round",
author = "noob cannon lol/mrdeathllama",
description = "restarting round",
version = "1.0",
url = "http://www.gamesyn.com"
}
public OnPluginStart()
{
hGameConf = LoadGameConfigFile("noobcannon.zps")
StartPrepSDKCall(SDKCall_Static)
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "RestartRound");
hRestartRound = EndPrepSDKCall();
RegServerCmd("nc_restartround", RestartRound)
RegAdminCmd("sm_restartround", rr_command, ADMFLAG_KICK, "Restart the round")
}
public Action:rr_command(client, args)
{
PrintToChatAll("[SM] Restarting the round...")
RestartRound(args)
return Plugin_Handled
}
public Action:RestartRound(args)
{
SDKCall(hRestartRound)
}reverse engineered signature
"Games"
{
"zps"
{
"Signatures"
{
"RestartRound"
{
"library" "server"
"windows" "\x83\xEC\x08\x56\x57\x6A\x00\x2A\x2A\x2A\x2A\x2A\x 2A\x2A\x2A\x2A\x2A\x8B\xF8\x85\xFF"
}
}
}
}