
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.

601
Support / [QUESTION] Re: Some information regarding Player and Vehicle update callbacks
« on December 13th, 2014, 03:24 PM »
See the wiki! http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Constants#Update_Type :)
602
Support / Re: vcmp dun work admen (0.3z r2)
« on December 13th, 2014, 03:23 PM »
0.3 doesn't support Steam version. Try 0.4! :)
603
Scripting and Server Management / [DOUBT] Re: Is it possible?
« on December 13th, 2014, 08:17 AM »
Yes!
604
Videos & Screenshots / Re: Custom Train test :D
« on December 8th, 2014, 01:03 AM »
How to start it in your server?
605
Snippet Showroom / Re: Death Messages (like SA:MP)
« on November 21st, 2014, 03:05 PM »I have added but still showing this error
606
Community Plugins / Re: Introduction to the Plugin SDK
« on November 15th, 2014, 03:22 PM »
I ported this to the VCMP wiki. :D
http://wiki.vc-mp.org/wiki/Introduction_to_the_Plugin_SDK
http://wiki.vc-mp.org/wiki/Introduction_to_the_Plugin_SDK
607
Scripting and Server Management / Re: pickups behavior
« on November 15th, 2014, 03:20 PM »
Try CreatePickupExpanded( 366, 1, 0, -372.4039, -539.5184, 17.2836, 255, true )
608
Scripting and Server Management / Re: GetForwardPoint help
« on November 15th, 2014, 03:16 PM »Tried, but only works with north and eastQuote from ysc3839 on November 13th, 2014, 10:03 AM local rad = angle; // we needn't convert to radians
609
Support / Re: VC-MP startup
« on November 13th, 2014, 10:17 AM »Go 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.
610
Scripting and Server Management / Re: GetForwardPoint help
« on November 13th, 2014, 10:03 AM »
local rad = angle; // we needn't convert to radians
611
General Discussion / Re: wiki spambots
« on October 31st, 2014, 08:00 PM »Fun 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.
612
Snippet Showroom / Re: Death Messages (like SA:MP)
« on October 24th, 2014, 12:20 PM »Will death messages remove ever ? Can't see that.
613
Snippet Showroom / Death Messages (like SA:MP)
« on October 18th, 2014, 05:34 AM »
Screenshot:

Code: [Select]
Set DeathMessages to false in server.conf.
And you can use "RightMessage" function to show any text you want.

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.