Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ysc3839

#41
General Discussion / VCMPConverters!
May 02, 2015, 05:57 AM
VCMPConverters

These are html applications which help you convert Vice-City map file to VCMP xml file.

Currently finished MapHider(HideMapObject Converter)!

Website: https://ysc3839.github.io/vcmpconv/
Source: https://github.com/ysc3839/vcmpconv/

How to use?
1. Find the map object in .ipl files, such as441, veg_treea1, 0, -631.9671021, -465.7115479, 9.247497559, 1, 1, 1, 0, 0, 0, 12. Copy it to the left text box, then click Convert.
3. Done! Result:HideMapObject(441, -631.9671021, -465.7115479, 9.247497559)
#42
Community Plugins / UPnPPortMapper
Mar 28, 2015, 03:28 PM
Don't need any configuration. Just add UPnPPortMapper in server.cfg! :)
https://bitbucket.org/ysc3839/0.4-upnpportmapper/downloads
#43
Set password in server.cfg.
Example:adminpass test
Type /admin login password in game to login!

Commands list:
/admin clientmessage <PlayerID> <Msg>
/admin gamemessage <PlayerID> <Type> <Msg>
/admin maxplayers <Max>
/admin settimerate <TimeRate>
/admin sethr <Hour>
/admin setmin <Minute>
/admin setweather <Weather>
/admin setgravity <Gravity>
/admin setgamespeed <Gamespeed>
/admin setwaterlevel <WaterLevel>
/admin setmaxheight <MaxHeight>
/admin setkillcmddelay <KillCmdDelay>
/admin setvehiclesforcedrespawnheight <VehiclesForcedRespawnHeight>
/admin setadmin <PlayerID> <IsAdmin>
/admin setplrworld <PlayerID> <WorldID>
/admin setplrname <PlayerID> <Name>
/admin setplrteam <PlayerID> <TeamID>
/admin setplrskin <PlayerID> <SkinID>
/admin setplrcolor <PlayerID> <Color>
/admin forceplrspawn <PlayerID>
/admin setplrmoney <PlayerID> <Money>
/admin setplrscore <PlayerID> <Score>
/admin sethp <PlayerID> <Health>
/admin setarmour <PlayerID> <Armour>
/admin setalpha <PlayerID> <Alpha> <FadeTime>
/admin kick <PlayerID>
/admin ban <PlayerID>
/admin banip <IP>
/admin unban <IP>
/admin ip <PlayerID>
/admin fps <PlayerID>
/admin uid <PlayerID>
/admin exitserver (It may cause server carsh.)
/admin serverinfo

More features will be added in future! :)

Updated: Server info!
See the picture


Downloads: https://bitbucket.org/ysc3839/0.4-admincommands/downloads

Reply this topic if you find any bug! :)
#44
Feature
Linux readline support.
In past version of this plugin, if you press arrow keys you will get characters like "^[[A^[[B^[[C^[[D".
Now with readline you can move the cursor or use command history.

Usage
function onConsoleInput(cmd, arg)
{
print(cmd + " " + arg);
}

Source & Download
https://bitbucket.org/ysc3839/0.4-cmdinput/downloads/

Version 1.3.1+ works on both v23(04rel004) and v30(04rel006) servers.
#46
General Discussion / VCMP Hide and Seek
Feb 21, 2015, 05:04 PM
As you may know CS Hide and Seek. I think it's very funny. Now I want to make a hide and seek server. I wonder how to change player's model? Now I make the object as a weapon. What do you think? :)
#47
General Discussion / Voodoo hydraulics?
Feb 19, 2015, 09:11 AM
How can I use Voodoo hydraulics? :)
#48
I used VS2013 to debug the server, it shows:
QuoteFirst-chance exception at 0x765722CB (KernelBase.dll) in server.exe: 0x40010005: Control-C.
If there is a handler for this exception, the program may be safely continued.
Then I click Continue, it shows:
QuoteUnhandled exception at 0x0046420D in server.exe: 0xC0000005: Access violation reading location 0x000000EC.

Please fix this bug!
#49
I want to spawn a ramp in front of player's vehicle. Can somebody tell me how to calculate the pos? Thanks! :)
#50
General Discussion / Issue about screenshot
Jan 02, 2015, 11:20 AM
When I screenshot in window mode, I will get the full screen image. What the fxxk!
So developers please fix it. :)
#51
Screenshot:


MaxLines <- 8;
LineGap <- 15;
PosX <- -400;
PosY <- 380;
function onServerStart()
{
TextInfo <- array( MaxLines );
}
function onPlayerDeath(player, reason)
{
local Text="";
if (reason==70)
{
Text="*> "+player.Name+" committed suicide. <*";
}
else if (reason==39)
{
Text="*> "+player.Name+" died in a car crash. <*";
}
else if (reason==31)
{
Text="*> "+player.Name+" burned to death. <*";
}
else if (reason==14)
{
Text="*> "+player.Name+" choked to death. <*";
}
else if (reason==43)
{
Text="*> "+player.Name+" drowned. <*";
}
else if (reason==41 || reason==51)
{
Text="*> "+player.Name+" exploded. <*";
}
else if (reason==44)
{
Text="*> "+player.Name+" fell to death. <*";
}
else
{
Text="*> "+player.Name+" died for some reason. <*";
}
RightMessage(Text);
}
function onPlayerKill(player, killer, reason, bodypart)
{
RightMessage(DeathText(player, killer, reason, bodypart));
}
function onPlayerTeamKill(player, killer, reason, bodypart)
{
RightMessage(DeathText(player, killer, reason, bodypart));
}
function DeathText(player, killer, reason, bodypart)
{
local Text="";
if (reason == 14 || reason == 31 || reason == 39 || reason == 40 || reason == 41 || reason == 44 || reason == 51)
{
Text="*> "+killer.Name+" killed "+player.Name+" with "+GetWeaponName(reason)+". <*";
}
else
{
Text="*> "+killer.Name+" killed "+player.Name+" with "+GetWeaponName(reason)+" "+BodyPartText(bodypart)+". <*";
}
}
function RightMessage(Text)
{
if (TextInfo[0])
{
TextInfo[0].Delete();
}
for (local i=0; i<MaxLines-1; i++)
{
if (TextInfo[i+1])
{
TextInfo[i] = TextInfo[i+1];
TextInfo[i].SetPosForAll(PosX, PosY+(i)*LineGap);
}
}
TextInfo[MaxLines-1] = CreateTextdraw(Text, PosX, PosY+(MaxLines-1)*LineGap, 0xFFB0B0B0);
TextInfo[MaxLines-1].ShowForAll();
}
function BodyPartText(bodypart)
{
switch( bodypart )
{
case 0:return "to body";
case 1:return "to torso";
case 2:return "to left arm";
case 3:return "to right arm";
case 4:return "to left leg";
case 5:return "to right leg";
case 6:return "to head";
case 7:return "hitting his car";
default:return "unknown";
}
}

Set DeathMessages to false in server.conf.
And you can use "RightMessage" function to show any text you want.