Raised This Month: $ Target: $400
 0% 

I'm doing something wrote, my event wont fire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Craftkiller
Junior Member
Join Date: Jul 2007
Old 07-02-2007 , 23:41   I'm doing something wrote, my event wont fire
Reply With Quote #1

My goal is to eventually write a team balancer that works based on Mani Admin ranks but everyones gotta start somewhere. Can someone please tell me why I dont respawn when I type !revive

Quote:
#include <sourcemod>
#include <sdktools>
new Handle:hGameConf;
new Handle:hRoundRespawn;
//void CCSPlayer::RoundRespawn();
public Plugin:myinfo = {
name = "Craftkiller's Team Balancer",
author = "Craftkiller",
description = "Balances teams based on Mani Admin Rank",
version = "1.0",
url = "http://craftkiller.com"
};

public OnPluginStart()
{
RegConsoleCmd("sm_revive", Revive)
hGameConf = LoadGameConfigFile("plugin.sdkexamples");
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "RoundRespawn");
hRoundRespawn = EndPrepSDKCall();
}
public Action:Revive(client, args)
{
if (client)
{
new String:name[32]
GetClientName(client, name, sizeof(name))
PrintToConsole(client, "Command from client: %s", name)
RespawnPlayer(client);

} else {
PrintToServer("Command from server.")
}
}
RespawnPlayer(client)
{
SDKCall(hRoundRespawn, client);
}
Craftkiller is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode