Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help
#1
Question 
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
Reply

#2
I was going to help you but then I saw 'oma' in your avatar
I recommend learning c#.
[Image: MaEIQ.png]
Reply

#3
(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++
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
WTF OMA?
Reply

#5
OMA
Reply

#6
guys, yes C# code, but dont be like this guy: Troll help me pf
Reply

#7
(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++
[Image: lQDUjba.jpg]
Reply

#8
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;
}
}
}
Reply

#9
(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()
Reply

#10
if(Message.toLower().startsWith("!xp")
[Image: MaEIQ.png]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.