Posts: 5,135
Threads: 241
Joined: Nov 2010
Reputation:
100
01-19-2012, 18:03
(This post was last modified: 01-19-2012, 18:05 by Pozzuh.)
I was going to help you but then I saw 'oma' in your avatar
I recommend learning c#.
Posts: 1,519
Threads: 107
Joined: Dec 2011
Reputation:
48
01-19-2012, 18:55
(This post was last modified: 01-19-2012, 18:56 by kokole.)
guys i already made this but is NOT working wtf?! EDIT: HOW TO PASTE CODE?
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Addon;
namespace myfirstplugin
{
public class plugin_test : CPlugin
{
public override void OnServerLoad()
{
ServerPrint("XP Informer V1 Loaded Successfully");
}
public override ChatType OnSay(string Message, ServerClient Client)
{
if (Message.Equals("!xp"))
{
TellClient(Client.ClientNum, "Your Shitty XP:" + GetDvar("scr_dm_score_kill"), true);
}
return ChatType.ChatContinue;
}
}
}
Posts: 5,135
Threads: 241
Joined: Nov 2010
Reputation:
100
if(Message.toLower().startsWith("!xp")