Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help
#11
(01-19-2012, 18:58)bonemind Wrote:
(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()

The Message is displayed good: Your Shitty XP:
But then i dont know how to add the scr_dm_score_kill value at the end of the message
Reply

#12
OMA
Reply

#13
(01-19-2012, 19:01)Rendflex Wrote: OMA

cmmon man Undecided
Reply

#14
(01-19-2012, 19:05)slipknotignacio Wrote:
(01-19-2012, 19:01)Rendflex Wrote: OMA

cmmon man Undecided

[Image: OneManArmy.png]
Reply



Forum Jump:


Users browsing this thread:
4 Guest(s)

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