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

#602
How to start it in your server?
#603
Quote from: RATHORE on Nov 21, 2014, 10:28 AMI have added but still showing this error
It isn't any wrong for me... :(
#605
Try CreatePickupExpanded( 366, 1, 0, -372.4039, -539.5184, 17.2836, 255, true )
#606
Quote from: ThunderStorm on Nov 13, 2014, 10:16 AM
Quote from: ysc3839 on Nov 13, 2014, 10:03 AMlocal rad = angle; // we needn't convert to radians
Tried, but only works with north and east
Try veh.Pos,veh.Angle.z ?
#607
Support / Re: VC-MP startup
Nov 13, 2014, 10:17 AM
Quote from: S.L.C on Nov 09, 2014, 10:46 AMGo to:

XP: [SystemDrive]\Documents and Settings\[UserName]\Application Data\VCMP
Win7: [SystemDrive]\Users\[UserName]\AppData\[Local/Roaming]\VCMP      (I have no idea if it's in Local or Roaming)

And remove the VCMP folder that you find there. Now open the VC:MP browser and go to Tools > Settings and set your GTA VC directory in there. Otherwise it won't be able to start the game.
Just run "%appdata%" :D
#608
local rad = angle; // we needn't convert to radians
#609
General Discussion / Re: wiki spambots
Oct 31, 2014, 08:00 PM
Quote from: stormeus on Oct 31, 2014, 02:48 AMFun fact: about 5,000 spambots were registered, all from China.

Right, so the antispam extension that was used was cracked by spambots and that's probably on me for using stupid questions as well as not using REcaptcha. A REcaptcha has been put up on the registration page and a DNS blacklist has been set up to block known spammers from registering and editing.

To deal with the issue of collateral damage already caused, the wiki is being nuked.

If you registered on the wiki within the last 7 days, you were probably nuked and had your edits reverted and have been blocked. PM me your wiki username if you've been blocked to be unblocked.
Hello. My account have been blocked but I can't receive any confirm email. Can you help me? Account name:ysc3839
#610
Quote from: sseebbyy on Oct 19, 2014, 10:11 AMWill death messages remove ever ? Can't see that.
It won't remove.
#611
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.