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

Messages - ysc3839

#556
Community Plugins / Re: Console Input Plugin
Mar 14, 2015, 03:34 PM
Quote from: S.L.C on Mar 14, 2015, 12:15 PMSo, this happens once when you start the server? The server start-up is paused until the user inserts some text with something like std::cin and then it can proceed? Well, if your server has an auto-restart-on-crash protection then you might need to re-think your script.
I don't know what you say. I use a thread to get user's input, and then use OnFrame to execute the script.
#557
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.
#558
I think you set 2 custom weapon with the same type. So the server think you using a hack.
#559
Quote from: stormeus on Feb 28, 2015, 06:42 PM
Quote from: ysc3839 on Feb 28, 2015, 02:34 PMA simple UID ban WITHOUT database! :D
<snip>

This does work. However SQLite would actually be more performant when starting the server and adding bans.



One note I will make is that the length of the unique ID is 40 characters and not 25. I'm not sure if SQLite enforces limits on VARCHAR fields anyway.

Quote from: MatheuS on Jan 05, 2015, 12:47 PMbut when it comes to ban does not refer to is ip or mac. ;D

We have a secret formula.
In SQLite, the VARCHAR is same as TEXT. It's no length limit.
#560
Snippet Showroom / Re: Automatic Gate
Feb 28, 2015, 02:36 PM
You needn't use a timer. Just use onPlayerMove event!
#561
A simple UID ban WITHOUT database! :D
function ReadLine(File)
{
local text = "";
local line = [];
while (!File.eos())
{
local chr = File.readn('b');
if (chr == '\n')
{
line.append(text);
text = "";
}
else
{
text += chr.tochar();
}
}
return line;
}

function LoadBanList()
{
local File = file("uid.banlist","r");
banlist <- ReadLine(File);
File.close();
}

//onPlayerJoin
foreach(uid in banlist)
{
if (player.UniqueID == uid) Kick(player);
}
#564
I think you can't :(
#565
Support / Re: 0.3 to 0.4
Feb 26, 2015, 12:17 PM
You needn't convert it unless you see any error.
#566
I suggest you put this code on git. Such as bitbucket and github etc.
#567
General Discussion / Re: VCMP Hide and Seek
Feb 23, 2015, 05:50 AM
Quote from: sseebbyy on Feb 22, 2015, 08:19 PMThe best thing would be if developers will add the function (already existing in VC, as I remember) that attaches an object (without colision ofc) to ped.
(off: for vehicles will also be great - tuning)
I think is a great idea!
#568
General Discussion / Re: VCMP Hide and Seek
Feb 22, 2015, 01:50 PM
Quote from: S.L.C on Feb 22, 2015, 11:09 AM
Quote from: ysc3839 on Feb 22, 2015, 10:12 AMIt isn't a question. Just a discussion. :)

Seems I got this wrong too :-\

Quote from: ysc3839 on Feb 21, 2015, 05:04 PMI wonder how to change player's model? Now I make the object as a weapon. What do you think? :)
VCMP seems can't change player's modle...
#569
General Discussion / Re: VCMP Hide and Seek
Feb 22, 2015, 10:12 AM
Quote from: S.L.C on Feb 22, 2015, 10:11 AMI honestly don't see the point of this question. Actually, I don't understand this question.
It isn't a question. Just a discussion. :)
#570
General Discussion / Re: VCMP Hide and Seek
Feb 22, 2015, 10:08 AM
Quote from: sseebbyy on Feb 22, 2015, 09:51 AMHmm... custom objects ? :D without colision.
if i use custom objects, i have to move the object by script, which i think isn't a good idea...