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
(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
OMA
(01-19-2012, 19:01)Rendflex Wrote: [ -> ]OMA

cmmon man Undecided
(01-19-2012, 19:05)slipknotignacio Wrote: [ -> ]
(01-19-2012, 19:01)Rendflex Wrote: [ -> ]OMA

cmmon man Undecided

[Image: OneManArmy.png]
Pages: 1 2