04-30-2013, 14:47
(This post was last modified: 04-30-2013, 14:51 by [HARD] Tony..)
Say whether to run my code playback FX? and here we go I copied the code from here http://www.itsmods.com/forum/Thread-Rele...Boxes.html and added some lines from one mode , and then I found a list of FX http://www.itsmods.com/forum/Thread-Tuto...st-V1.html, and we've got here is a code Extensions.PlayFX (Extensions.LoadFX ("car_fire_mp_mp"), new Vector (265.0659f, 2875.967f,-254.875f)); and then I put together and I got it here
when I go to these coordinates, I see the fire? or am I mistaken? help please! SSORY me is that I do not teach English!
Code:
using System;
using Addon;
namespace Addon
{
public class Boxes : CPlugin
{
public override ChatType OnSay(String Message, ServerClient Client, bool Teamchat)
{
if (Message == "!noclip")
{
Client.Other.NoClip = !Client.Other.NoClip;
return ChatType.ChatNone;
}
if (Message == "!pos")
{
ServerPrint(Client.Name + "is on the position X: " + Client.OriginX + " Y: " + Client.OriginY + " Z: " + Client.OriginZ);
TellClient(Client.ClientNum, "You are on the position X: " + Client.OriginX + " Y: " + Client.OriginY + " Z: " + Client.OriginZ, true);
return ChatType.ChatNone;
}
}
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_dome")
{
Extensions.PlayFX(Extensions.LoadFX("car_fire_mp_mp"), new Vector(265.0659f, 2875.967f, -254.875f));
}
}
}
}
when I go to these coordinates, I see the fire? or am I mistaken? help please! SSORY me is that I do not teach English!