ItsMods

Full Version: [IDEA]Spam Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
IDEA
Community Good I have a question I want to create a plugin for my server that my web site plublicidad
an example

When the player dies leave a message on the screen of the player with the command and tellclient already created the code but I like that I gave him the check

Quote:using System;
using Addon;

namespace spam_plugin_test
{
public class spam_plugin_test : CPlugin
{
public override void OnServerLoad()
{
ServerPrint("spam_plugin_load By Tonejo!");
}

public override void OnPlayerSpawned(ServerClient Client)
{
TellClient(5, "^2Visita ^4Nuestro ^1Sitio Web ^2www.tgclancr.enjin.com");
}
}
}
Thanks?
why spam
(07-03-2012, 03:34)JayDi Wrote: [ -> ]why spam
is the name that occurred to me but would like an automated message when the person dies to publicize my website
(07-03-2012, 04:05)alemonoes Wrote: [ -> ]
(07-03-2012, 03:34)JayDi Wrote: [ -> ]why spam
is the name that occurred to me but would like an automated message when the person dies to publicize my website

timed messages.....
CSHARP Code
  1. TellClient(5, "^2Visita ^4Nuestro ^1Sitio Web ^2www.tgclancr.enjin.com");

This means whenever someone spawns it will send this message to client 5. Better replace it with
CSHARP Code
  1. TellClient(Client.ClientNum, "^2Visita ^4Nuestro ^1Sitio Web ^2www.tgclancr.enjin.com", false);