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 - SAzEe21

#1
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.
#2
QuoteAn updated plugin pack for 04rel006 servers can be found here:
https://v04.vc-mp.org/allplugins_04rel006_initial.7z

Plugins link does not working for me showing 404 not found. Can you fix it? @Stormeus
#3
First create a new function like
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 here

after that, use "+GetPlayerTeamColor( player.Color )+" inside MessagePlayer

try this for example

if ( cmd == "color" )
{
MessagePlayer("Your team color is, "+GetPlayerTeamColor( player.Color ), player );
}
#4
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "cmds" )
{
MessagePlayer( "Post your commands inside this", player );
}
}
#5
Nice work, keep it up.
#6
Quote from: WAJID on Oct 22, 2017, 07:54 AM
Quote from: WAJID on Oct 21, 2017, 05:00 PMHELLO I WANT A SCRIPT  WHICH HAVE ONLY MINI GAMES/RACE/PARKOUR/etc
but i want a script bro
Find rediment scripts in http://forum.vc-mp.org/?board=11.0 :p
#7
Hope you have the GetTok And NumTok functions in your script.
If you don't have put these in your script then.
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();
}
#8
Support / Re: Help with function library
Oct 16, 2017, 05:55 AM
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
#9
Snippet Showroom / Re: Hunter Event
Oct 15, 2017, 06:34 AM
Don't know about codes but nice idea.
#10
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

Many players said "Give us more information"
#11
Support / Re: help - me plsss
Oct 14, 2017, 04:22 AM
Try removing 04rell004 from Vice City Multiplayer folder wherever you installed and try installing again.
#13
i appreciated your work. :p
#14
Quote from: Xmair on Jul 15, 2017, 05:29 PMHow about just using PlaySound( player.UniqueWorld, 50000 + 3, player.Pos );

Not aware of this :) Btw this one is more better than mine.

#15
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
}
}

Add this 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.