ItsMods

Full Version: Need help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, im a newbie at coding, so i want to request the source code of this:
A player for example writes !xp in the chat box, and the value of the dvar scr_dm_score_kill is displayed. Simple right? But not for me Sad
I was going to help you but then I saw 'oma' in your avatar
I recommend learning c#.
(01-19-2012, 18:03)Pozzuh Wrote: [ -> ]I was going to help you but then I saw 'oma' in your avatar
I recommend learning c#.
same, C# is better than C++
WTF OMA?
OMA
guys, yes C# code, but dont be like this guy: Troll help me pf
(01-19-2012, 18:27)Se7en Wrote: [ -> ]same, C# is better than C++

nope, it's easier to make hax in C++ than C#
also, you've probably never used C++
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;
}
}
}
(01-19-2012, 18:55)slipknotignacio Wrote: [ -> ]guys i already made this but is NOT working wtf?!
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;
}
}
}

try Message.Trim().toLower().Equals()
or dirtier: Message.ToLower().Contains()
if(Message.toLower().startsWith("!xp")
Pages: 1 2