Yeah same happening to me, other servers are running perfectly fine to me. Is it any possible fix for that if there is please take us to that.
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 MenuQuoteAn updated plugin pack for 04rel006 servers can be found here:
https://v04.vc-mp.org/allplugins_04rel006_initial.7z
function GetPlayerTeamColor( Color )
{
if ( Team == 0 )
return "[#00FF50]";
else if ( Team == 1 )
return "[#1E90FF]";
else if ( Team == 2 )
return "[#FFD700]";
else if ( Team == 3 )
return "[#FF0000]";
}
and set each team colors here like I did hereif ( cmd == "color" )
{
MessagePlayer("Your team color is, "+GetPlayerTeamColor( player.Color ), player );
}
Quote from: WAJID on Oct 22, 2017, 07:54 AMFind rediment scripts in http://forum.vc-mp.org/?board=11.0 :pQuote from: WAJID on Oct 21, 2017, 05:00 PMHELLO I WANT A SCRIPT WHICH HAVE ONLY MINI GAMES/RACE/PARKOUR/etcbut i want a script bro
function GetTok(str, sep, pos, len = null)
{
if (typeof str != "string" || str.len() < 1) return "";
else if (typeof sep != "string" || sep.len() < 1) return "";
local tok = split(str, sep);
if (typeof tok != "array") return str;
else if (tok.len() == 1 && tok[0] == str) return tok[0];
if (typeof pos != "integer")
{
if (typeof pos == "float" || typeof pos == "string") pos = pos.tointeger();
else return "";
}
if (pos >= tok.len()) return "";
else if (pos < 0) pos = 0;
if (len == null)
len = (tok.len() - pos);
else if (typeof len != "integer")
{
if (typeof len == "float" || typeof len == "string") len = len.tointeger();
else return "";
}
if ((pos+len) > tok.len()) len = (tok.len() - pos);
else if (len <= 0) return "";
tok = tok.slice(pos, pos+len);
if (tok.len() > 1)
{
local res = tok[0];
tok.remove(0);
foreach (tk in tok) res += sep + tk;
return res;
}
else if (tok.len() == 1) return tok[0];
else return "";
}
function NumTok(str, sep)
{
if (typeof str != "string" || str.len() < 1) return 0;
else if (typeof sep != "string" || sep.len() < 1) return 0;
local tok = split(str, sep);
if (typeof tok != "array") return 0;
else if (tok.len() == 1 && tok[0] == str) return 0;
else return tok.len();
}
mySprite <- null;
function Script::ScriptLoad()
{
mySprite = GUISprite("Filename.png", VectorScreen(x, y));
}
This code is of 04rell003 version and works only in 003, this doesn't work in 04rell004 versions because 004 have all those functions in Client-Side functions. And 003 have all those in Server-Side. You can choose 003 version but no update will be done in that version because that's old the newest and latest one is 04rell004 and for that you have to learn Client-Side stuff I know that's suux xd
Quote from: MrMeeses on Oct 14, 2017, 08:04 AMCan someone update this topic? I am having the same problem with my server and need help.
Regards
John Meeses
Quote from: MatheuS on Aug 31, 2017, 01:24 PMWow! Good work dude.
Quote from: Xmair on Jul 15, 2017, 05:29 PMHow about just using PlaySound( player.UniqueWorld, 50000 + 3, player.Pos );
function Random(min=0, max=RAND_MAX)
{
local r = rand();
srand(GetTickCount() * r);
return (r % ((max + 1) - min)) + min;
}
function Randomsounds()
{
if ( GetPlayers() >= 1 )
{
local num = Random( 1, 3 ); // Note: There are only 3 sounds added currently you can add more by copy paste but note that change the numbers you added below Random( 1, 3here )
if ( num == 1 )
{
PlaySound( player.UniqueWorld , 50001 , player.Pos ); // Play your sound which you want to play for the first time
}
else if ( num == 2 )
{
PlaySound( player.UniqueWorld , 50002 , player.Pos ); // Play your sound which you want to play for the second time
}
else if ( num == 3 )
{
PlaySound( player.UniqueWorld , 50003 , player.Pos ); // Play your sound which you want to play for the third time
}
}
NewTimer( "Randomsounds", 10000, 0 );
in onScriptLoad this will play the random sound in every 10 seconds you can change whatever time you want to add to play on.