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.

Messages - Zeeshan.Bhatti
1
Server & Plugin Updates / Re: Server Update Released (2018-06-28)
« on June 30th, 2018, 03:58 PM »
Quote
An 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
2
Scripting and Server Management / Re: Color player.Name
« on November 16th, 2017, 07:07 PM »
First create a new function like
Code: [Select]
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

Code: [Select]
if ( cmd == "color" )
{
MessagePlayer("Your team color is, "+GetPlayerTeamColor( player.Color ), player );
}
3
Scripting and Server Management / Re: How to add that messageplayer?
« on November 11th, 2017, 01:50 PM »
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "cmds" )
{
MessagePlayer( "Post your commands inside this", player );
}
}
4
Videos & Screenshots / Re: GUI Stats Panel | V-0.3
« on October 25th, 2017, 02:00 PM »
Nice work, keep it up.
5
Quote from WAJID on October 22nd, 2017, 08:54 AM
Quote from WAJID on October 21st, 2017, 06:00 PM
HELLO 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
6
Scripting and Server Management / Re: /slap cmd Gettok arguments
« on October 22nd, 2017, 05:59 AM »
Hope you have the GetTok And NumTok functions in your script.
If you don't have put these in your script then.
Code: [Select]
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();
}
7
Support / Re: Help with function library
« on October 16th, 2017, 06:55 AM »
Code: [Select]
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
8
Snippet Showroom / Re: Hunter Event
« on October 15th, 2017, 07:34 AM »
Don't know about codes but nice idea.
9
Scripting and Server Management / Re: pls help
« on October 14th, 2017, 09:28 AM »
Quote from MrMeeses on October 14th, 2017, 09:04 AM
Can 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"
10
Support / Re: help - me plsss
« on October 14th, 2017, 05:22 AM »
Try removing 04rell004 from Vice City Multiplayer folder wherever you installed and try installing again.
11
Snippet Showroom / [CLIENT-SNIPPTE] Re: Scrollable Memobox With Multiple Pages & Backgrounds
« on September 23rd, 2017, 12:21 PM »
Quote from MatheuS on August 31st, 2017, 02:24 PM
Wow! Good work dude.
12
i appreciated your work. :p
13
Script and Content Requests / Re: Custom Sounds
« on July 16th, 2017, 11:09 AM »
Quote from Xmair on July 15th, 2017, 06:29 PM
How about just using
Code: [Select]
PlaySound( player.UniqueWorld, 50000 + 3, player.Pos );
Not aware of this :) Btw this one is more better than mine.

14
Script and Content Requests / Re: Custom Sounds
« on July 15th, 2017, 04:33 PM »
Code: [Select]
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
Code: [Select]
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.
15
Code: [Select]
else if ( cmd == "givescore" )
    {
        if(!text) MessagePlayer( "[#ffffff]syntax - /givescore <playerName> <Amount>", player );
        else
        {
            local params = split( text, " " ), plr = FindPlayer( params[0] ), ammount = params[1];
            if(!plr) MessagePlayer( "[#ffffff]Error - invalid player", player );
            else if(!ammount || !IsNum( ammount )) MessagePlayer( "[#ffffff]Error - The Ammount must be integer", player );
            else
            {
                plr.Score = ammount.tointeger();
                MessagePlayer( "[#DC26FF]"+player.Name+" given $"+ammount.tointeger()+" to you",plr);
                MessagePlayer( "[#DC26FF]You gave $"+ammount.tointeger()+" > "+plr.Name,player);
                SaveAccount(plr)
            }
        }
    }