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

#31
where do i download the mpsvrrel64 file?
#32
Client Scripting / Mod Hud Weapon Wheel
Apr 14, 2020, 09:30 PM
Good, here I bring you this little mod for vcmp

=== MOD HUD WEAPON WHEEL V0.1 ===

! Credits¡
Creator Luis_Labarca
Icons version 0.1 (Gtaall.com).

== Version 0.2 ==
Text how much ammunition.- Ready
open the wheel of weapons with the mause - Ready
new icons

Version 0.2
[spoiler]

[/spoiler]

Link Mod v0.2



Version 0.1
[spoiler]To open the menu press the  key ( E )



Add server/Script
[noae][noae][noae][noae][noae][noae][noae][noae][noae][noae][noae]function onScriptLoad()
{
KeyOpenWheelWeapons<- BindKey(true,0x45,0,0);
HUD <- array( GetMaxPlayers(), false );
HUDSLOT1 <- array( GetMaxPlayers(), "" );
HUDSLOT2 <- array( GetMaxPlayers(), "" );
HUDSLOT3 <- array( GetMaxPlayers(), "" );
HUDSLOT4 <- array( GetMaxPlayers(), "" );
HUDSLOT5 <- array( GetMaxPlayers(), "" );
HUDSLOT6 <- array( GetMaxPlayers(), "" );
HUDSLOT7 <- array( GetMaxPlayers(), "" );
HUDSLOT8 <- array( GetMaxPlayers(), "" );
}
function onPlayerSpawn( player )
{
player.SetWeapon(5,100)
player.SetWeapon(17,500)
player.SetWeapon(15,500)
player.SetWeapon(19,500)
player.SetWeapon(22,500)
player.SetWeapon(26,500)
player.SetWeapon(29,500)
player.SetWeapon(30,500)
}
function onKeyDown( player, key )
{
if ( key == KeyOpenWheelWeapons  && HUD[ player.ID ] == false)
{
HUD[ player.ID ] = true;
local Wep="";
for(local slot = 0; slot != 12; slot++)
{
local w_id = player.GetWeaponAtSlot(slot),w_ammo=player.GetAmmoAtSlot(slot),w_name=GetWeaponName(w_id);
if(w_id !=  0 && w_ammo != 0)
{
Wep +=" "+w_id+" "+w_ammo;
}
}
HUDSLOT1[player.ID] = GetTok( Wep, " ", 1 )+" "+GetTok( Wep, " ", 2 );
HUDSLOT2[player.ID] = GetTok( Wep, " ", 3 )+" "+GetTok( Wep, " ", 4 );
HUDSLOT3[player.ID] = GetTok( Wep, " ", 5 )+" "+GetTok( Wep, " ", 6 );
HUDSLOT4[player.ID] = GetTok( Wep, " ", 7 )+" "+GetTok( Wep, " ", 8 );
HUDSLOT5[player.ID] = GetTok( Wep, " ", 9 )+" "+GetTok( Wep, " ", 10 );
HUDSLOT6[player.ID] = GetTok( Wep, " ", 11 )+" "+GetTok( Wep, " ", 12 );
HUDSLOT7[player.ID] = GetTok( Wep, " ", 13 )+" "+GetTok( Wep, " ", 14 );
HUDSLOT8[player.ID] = GetTok( Wep, " ", 15 )+" "+GetTok( Wep, " ", 16 );
Stream.StartWrite()
Stream.WriteString("OpenMenuWheel"+Wep)
Stream.SendStream(player)
}
}
function onClientScriptData(player)
{
local ReadString = Stream.ReadString();
local ReadInt = Stream.ReadInt();
if(ReadString == "HudOff")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
}
if(ReadString == "SelectSlot1")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT1[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT1[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot2")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT2[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT2[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot3")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT3[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT3[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot4")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT4[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT4[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot5")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT5[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT5[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot6")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT6[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT6[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot7")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT7[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT7[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot8")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT8[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT8[player.ID], " ", 2 ).tointeger())
}
}



function GetTok(string, separator, n, ...)
{
local m = vargv.len() > 0 ? vargv[0] : n,
tokenized = split(string, separator),
text = "";
if (n > tokenized.len() || n < 1) return null;
for (; n <= m; n++)
{
text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
}
return text;
}
[/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae]

Add from Client -Side

[noae][noae][noae][noae][noae][noae][noae][noae][noae][noae][noae]//Add from Client - Side

ScreenX <- GUI.GetScreenSize().X;
ScreenY <- GUI.GetScreenSize().Y;
ScreenSize <- ScreenY / 40;


///=== VARIABLES
WheelWeapons <- {
 ButtonActivated1 = false,
 ButtonActivated2 = false,
 ButtonActivated3 = false,
 ButtonActivated4 = false,
 ButtonActivated5 = false,
 ButtonActivated6 = false,
 ButtonActivated7 = false,
 ButtonActivated8 = false,
 ButtonActivated9 = false,
 ButtonActivated10 = false,
//-----
 Circle = null,
 Wep1 = null,
 Wep2 = null,
 Wep3 = null,
 Wep4 = null,
 Wep5 = null,
 Wep6 = null,
 Wep7 = null,
 Wep8 = null,
//-----
 Button1 = null,
 Button2 = null,
 Button3 = null,
 Button4 = null,
 Button5 = null,
 Button6 = null,
 Button7 = null,
 Button8 = null,
//-----
 Text1 = null,
 Text2 = null,
 Text3 = null,
 Text4 = null,
 Text5 = null,
 Text6 = null,
 Text7 = null,
 Text8 = null,
//-----
 OptionButton1 = null,
 OptionButton2 = null,
 OptionButton3 = null,
 OptionButton4 = null,
 OptionButton5 = null,
 OptionButton6 = null,
 OptionButton7 = null,
 OptionButton8 = null,
 HudOff = null
 }
///===================================




function Script::ScriptProcess()
{
::ScreenX = GUI.GetScreenSize().X;
::ScreenY = GUI.GetScreenSize().Y;
if( ::WheelWeapons.Circle )
{
::WheelWeapons.Circle.Position = ::VectorScreen(( ScreenX * 0.30 ) - ( ScreenY / ScreenSize), ScreenY * 0.20)
}
}

function GUI::ElementClick(element, mouseX, mouseY)
{
if(element==::WheelWeapons.Wep1)
{
local Datos = Stream();
Datos.WriteString("SelectSlot1");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep2)
{
local Datos = Stream();
Datos.WriteString("SelectSlot2");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep3)
{
local Datos = Stream();
Datos.WriteString("SelectSlot3");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep4)
{
local Datos = Stream();
Datos.WriteString("SelectSlot4");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep5)
{
local Datos = Stream();
Datos.WriteString("SelectSlot5");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep6)
{
local Datos = Stream();
Datos.WriteString("SelectSlot6");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep7)
{
local Datos = Stream();
Datos.WriteString("SelectSlot7");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep8)
{
local Datos = Stream();
Datos.WriteString("SelectSlot8");
Server.SendData(Datos);
}
if(element==::WheelWeapons.HudOff)
{
local Datos = Stream();
Datos.WriteString("HudOff");
Server.SendData(Datos);
}
}

function Server::ServerData(stream)
{
local ReadString = stream.ReadString(),ReadInt = stream.ReadInt(),ReadFloat=stream.ReadFloat();

if(GetTok( ReadString, " ", 1 ) == "OpenMenuWheel")
{
local Slot1 = null,Ammo1 = 0,Slot2 = null,Ammo2 = 0,Slot3 = null,Ammo3 = 0,Slot4 = null,Ammo4 = 0,Slot5 = null,Ammo5 = 0,Slot6 = null,Ammo6 = 0,Slot7 = null,Ammo7 = 0,Slot8 = null,Ammo8 = 0;
  Slot1=GetTok( ReadString, " ", 2 );
  Ammo1=GetTok( ReadString, " ", 3 );
  Slot2=GetTok( ReadString, " ", 4 );
  Ammo2=GetTok( ReadString, " ", 5 );
  Slot3=GetTok( ReadString, " ", 6 );
  Ammo3=GetTok( ReadString, " ", 7 );
  Slot4=GetTok( ReadString, " ", 8 );
  Ammo4=GetTok( ReadString, " ", 9 );
  Slot5=GetTok( ReadString, " ", 10 );
  Ammo5=GetTok( ReadString, " ", 11 );
  Slot6=GetTok( ReadString, " ", 12 );
  Ammo6=GetTok( ReadString, " ", 13 );
  Slot7=GetTok( ReadString, " ", 14 );
  Ammo7=GetTok( ReadString, " ", 15 );
  Slot8=GetTok( ReadString, " ", 16 );
  Ammo8=GetTok( ReadString, " ", 17 );
 ::GUI.SetMouseEnabled(true);
 ::WheelWeapons.Circle <- GUISprite("Wheel.png", VectorScreen(0, 0));
 ::WheelWeapons.Circle.Size = VectorScreen(400, 300);
 ::WheelWeapons.Circle.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Circle.Alpha=150;
 ::WheelWeapons.HudOff <- GUIButton(VectorScreen(120,270), VectorScreen(140, 22), Colour(20, 20, 20), "Cerrar", GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);
 ::WheelWeapons.HudOff.TextColour = Colour(255, 255, 255);
 ::WheelWeapons.HudOff.FontName = Colour(75,75,75);
 ::WheelWeapons.HudOff.FontSize = 11;
 ::WheelWeapons.HudOff.Alpha = 150;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.HudOff);
if(Slot1 != null)
{
 ::WheelWeapons.Wep1 <- GUISprite("Wep"+Slot1+".png", VectorScreen(110, 55));
 ::WheelWeapons.Wep1.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep1.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep1.Alpha=150;
 ::WheelWeapons.OptionButton1 = Slot1;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep1);
}
if(Slot2 != null)
{
 ::WheelWeapons.Wep2 <- GUISprite("Wep"+Slot2+".png", VectorScreen(180, 55));
 ::WheelWeapons.Wep2.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep2.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep2.Alpha=150;
 ::WheelWeapons.OptionButton2 = Slot2;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep2);
}
if(Slot3 != null)
{
 ::WheelWeapons.Wep3 <- GUISprite("Wep"+Slot3+".png", VectorScreen(250, 110));
 ::WheelWeapons.Wep3.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep3.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep3.Alpha=150;
 ::WheelWeapons.OptionButton3 = Slot3;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep3);
}
if(Slot4 != null)
{
 ::WheelWeapons.Wep4 <- GUISprite("Wep"+Slot4+".png", VectorScreen(250, 170));
 ::WheelWeapons.Wep4.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep4.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep4.Alpha=150;
 ::WheelWeapons.OptionButton4 = Slot4;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep4);
}
if(Slot5 != null)
{
 ::WheelWeapons.Wep5 <- GUISprite("Wep"+Slot5+".png", VectorScreen(190, 215));
 ::WheelWeapons.Wep5.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep5.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep5.Alpha=150;
 ::WheelWeapons.OptionButton5 = Slot5;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep5);
}
if(Slot6 != null)
{
 ::WheelWeapons.Wep6 <- GUISprite("Wep"+Slot6+".png", VectorScreen(110, 215));
 ::WheelWeapons.Wep6.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep6.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep6.Alpha=150;
 ::WheelWeapons.OptionButton6 = Slot6;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep6);
}
if(Slot7 != null)
{
 ::WheelWeapons.Wep7 <- GUISprite("Wep"+Slot7+".png", VectorScreen(55, 170));
 ::WheelWeapons.Wep7.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep7.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep7.Alpha=150;
 ::WheelWeapons.OptionButton7 = Slot7;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep7);
}
if(Slot8 != null)
{
 ::WheelWeapons.Wep8 <- GUISprite("Wep"+Slot8+".png", VectorScreen(55, 110));
 ::WheelWeapons.Wep8.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep8.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep8.Alpha=150;
 ::WheelWeapons.OptionButton8 = Slot8;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep8);
}
}
if(ReadString=="CloseMenuWheel")
{
 ::GUI.SetMouseEnabled(false);
 ::WheelWeapons.ButtonActivated1 = false;
 ::WheelWeapons.ButtonActivated2 = false;
 ::WheelWeapons.ButtonActivated3 = false;
 ::WheelWeapons.ButtonActivated4 = false;
 ::WheelWeapons.ButtonActivated5 = false;
 ::WheelWeapons.ButtonActivated6 = false;
 ::WheelWeapons.ButtonActivated7 = false;
 ::WheelWeapons.ButtonActivated8 = false;
 ::WheelWeapons.ButtonActivated9 = false;
 ::WheelWeapons.ButtonActivated10 = false;
//-----
 ::WheelWeapons.Circle = null;
 ::WheelWeapons.Wep1 = null;
 ::WheelWeapons.Wep2 = null;
 ::WheelWeapons.Wep3 = null;
 ::WheelWeapons.Wep4 = null;
 ::WheelWeapons.Wep5 = null;
 ::WheelWeapons.Wep6 = null;
 ::WheelWeapons.Wep7 = null;
 ::WheelWeapons.Wep8 = null;
//-----
 ::WheelWeapons.Button1 = null;
 ::WheelWeapons.Button2 = null;
 ::WheelWeapons.Button3 = null;
 ::WheelWeapons.Button4 = null;
 ::WheelWeapons.Button5 = null;
 ::WheelWeapons.Button6 = null;
 ::WheelWeapons.Button7 = null;
 ::WheelWeapons.Button8 = null;
//-----
 ::WheelWeapons.Text1 = null;
 ::WheelWeapons.Text2 = null;
 ::WheelWeapons.Text3 = null;
 ::WheelWeapons.Text4 = null;
 ::WheelWeapons.Text5 = null;
 ::WheelWeapons.Text6 = null;
 ::WheelWeapons.Text7 = null;
 ::WheelWeapons.Text8 = null;
//-----
 ::WheelWeapons.OptionButton1 = null;
 ::WheelWeapons.OptionButton2 = null;
 ::WheelWeapons.OptionButton3 = null;
 ::WheelWeapons.OptionButton4 = null;
 ::WheelWeapons.OptionButton5 = null;
 ::WheelWeapons.OptionButton6 = null;
 ::WheelWeapons.OptionButton7 = null;
 ::WheelWeapons.OptionButton8 = null;
 ::WheelWeapons.HudOff = null;
}
}

function GUI::ElementHoverOver(element)
{
if(element == WheelWeapons.Wep1  &&  WheelWeapons.OptionButton1 != null )
{
 ::WheelWeapons.Button1 <- GUISprite("Button1.png", VectorScreen(0, 0));
 ::WheelWeapons.Button1.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button1.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button1.Alpha=150;
 ::WheelWeapons.ButtonActivated1 = true
  if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button1);
}
if(element == WheelWeapons.Wep2  &&  WheelWeapons.OptionButton2 != null)
{
 ::WheelWeapons.Button2 <- GUISprite("Button2.png", VectorScreen(0, 0));
 ::WheelWeapons.Button2.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button2.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button2.Alpha=150;
 ::WheelWeapons.ButtonActivated2 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button2);
}
if(element == WheelWeapons.Wep3  &&  WheelWeapons.OptionButton3 != null)
{
 ::WheelWeapons.Button3 <- GUISprite("Button3.png", VectorScreen(0, 0));
 ::WheelWeapons.Button3.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button3.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button3.Alpha=150;
 ::WheelWeapons.ButtonActivated3 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button3);
}
if(element == WheelWeapons.Wep4  &&  WheelWeapons.OptionButton4 != null)
{
 ::WheelWeapons.Button4 <- GUISprite("Button4.png", VectorScreen(0, 0));
 ::WheelWeapons.Button4.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button4.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button4.Alpha=150;
 ::WheelWeapons.ButtonActivated4 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button4);
}
if(element == WheelWeapons.Wep5  &&  WheelWeapons.OptionButton5 != null)
{
 ::WheelWeapons.Button5 <- GUISprite("Button5.png", VectorScreen(0, 0));
 ::WheelWeapons.Button5.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button5.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button5.Alpha=150;
 ::WheelWeapons.ButtonActivated5 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button5);
}
if(element == WheelWeapons.Wep6  &&  WheelWeapons.OptionButton6 != null)
{
 ::WheelWeapons.Button6 <- GUISprite("Button6.png", VectorScreen(0, 0));
 ::WheelWeapons.Button6.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button6.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button6.Alpha=150;
 ::WheelWeapons.ButtonActivated6 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button6);
}
if(element == WheelWeapons.Wep7  &&  WheelWeapons.OptionButton7 != null)
{
 ::WheelWeapons.Button7 <- GUISprite("Button7.png", VectorScreen(0, 0));
 ::WheelWeapons.Button7.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button7.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button7.Alpha=150;
 ::WheelWeapons.ButtonActivated7 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button7);
}
if(element == WheelWeapons.Wep8  &&  WheelWeapons.OptionButton8 != null)
{
 ::WheelWeapons.Button8 <- GUISprite("Button8.png", VectorScreen(0, 0));
 ::WheelWeapons.Button8.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button8.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button8.Alpha=150;
 ::WheelWeapons.ButtonActivated8 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button8);
}
}
function GUI::ElementHoverOut(element)
{
if(element == WheelWeapons.Wep1  &&  WheelWeapons.ButtonActivated1 == true )
{
::WheelWeapons.ButtonActivated1 = false
::WheelWeapons.Button1 <- null;
}
if(element == WheelWeapons.Wep2  && WheelWeapons.ButtonActivated2 == true )
{
::WheelWeapons.ButtonActivated2 = false
::WheelWeapons.Button2 <- null;
}
if(element == WheelWeapons.Wep3  && WheelWeapons.ButtonActivated3 == true )
{
::WheelWeapons.ButtonActivated3 = false
::WheelWeapons.Button3 <- null;
}
if(element == WheelWeapons.Wep4  && WheelWeapons.ButtonActivated4 == true )
{
::WheelWeapons.ButtonActivated4 = false
::WheelWeapons.Button4 <- null;
}
if(element == WheelWeapons.Wep5  && WheelWeapons.ButtonActivated5 == true )
{
::WheelWeapons.ButtonActivated5 = false
::WheelWeapons.Button5 <- null;
}
if(element == WheelWeapons.Wep6  && WheelWeapons.ButtonActivated6 == true )
{
::WheelWeapons.ButtonActivated6 = false
::WheelWeapons.Button6 <- null;
}
if(element == WheelWeapons.Wep7  && WheelWeapons.ButtonActivated7 == true )
{
::WheelWeapons.ButtonActivated7 = false
::WheelWeapons.Button7 <- null;
}
if(element == WheelWeapons.Wep8  && WheelWeapons.ButtonActivated8 == true )
{
::WheelWeapons.ButtonActivated8 = false
::WheelWeapons.Button8 <- null;
}
}


function GetTok(string, separator, n, ...)
{
local m = vargv.len() > 0 ? vargv[0] : n,
tokenized = split(string, separator),
text = "";
if (n > tokenized.len() || n < 1) return null;
for (; n <= m; n++)
{
text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
}
return text;
}

[/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae]




Link icons : https://drive.google.com/open?id=1CirPBuEPT4-AsczI17NBQGN3jWSCmYX9 <--Add Server/Sotore/Sprites
Link ModComplete :link


Screeshots
[/spoiler]
#33
Quote from: umar4911 on Nov 03, 2019, 05:33 AMPictures not loading
click in pictures loading
#34
General Discussion / connection server failed
Nov 03, 2019, 05:08 AM
what is the mistake
-






#35
Quote from: Arksun2 on Aug 27, 2019, 05:29 AMThese maps are literally stolen from my old CS server, you didnt even bother giving credits. My server will also back soon, so better stay away.

Otherwise, you will see.
Original Maps Mods

CS dust desert Map GTA SA Map Mods autor bashmak
http://ashslowgameblog.blog.fc2.com/blog-entry-235.html
http://www.gtainside.com/download.php?do=comments&cat=258&start=0&id=49915&orderBy=

CS snow survivor of GTA SA Map Mods author bashmak
http://ashslowgameblog.blog.fc2.com/blog-entry-603.html
http://www.gtainside.com/download.php?do=comments&cat=258&start=21&id=49869

CS italy of GTA SA Map Mods autor bashmak
http://ashslowgameblog.blog.fc2.com/blog-entry-276.html
http://www.gtainside.com/download.php?do=comments&cat=258&start=7&id=49873
 >:( :P :P :P :P :P
#36
Quote from: Sebastian on Aug 27, 2019, 08:09 AMlol nice
Only if somebody could add some proper lighting to those maps...
hehehe well if you wish you could help me :)
#37
Quote from: Arksun2 on Aug 27, 2019, 05:29 AMThese maps are literally stolen from my old CS server, you didnt even bother giving credits. My server will also back soon, so better stay away.

Otherwise, you will see.

1: I'm not stealing anything from anyone
2: I've been creating my cs server for a while, I didn't even know you had one, I don't even know you
3: These maps take them out of the internet and in my maps folder are the credits of the maps and I don't see that they are yours
and finally I don't care if you have a server or not that is not my problem
have your server and ready I am not copying anything to anyone ......
 :P :P :P
#38
For some time now I have been thinking about creating a Counter-Striker 1.6 style server
The server will be available soon


Systems

Unique systems
Ground Weapons System
Random Map System
Voting map selection system
Hostage map system and c4
Menu system styles cs 1.6
Planting system, deactivate c4 style cs 1.6
1.6 cs hud system
Weapons and weapons collection system
Rounds System
Cs 1.6 style chat system
Cs 1.6 Style Death and Murder Message System
System to buy equipment style cs 1.6
System of name and health of a player in 3D Text
C4 map and hostage system
When you lower your health, the red screen effect will be activated
When you raise your health, the green screen effect will be activated

and much more.........

Videos
[spoiler]Video #1
Video #2
Video #3
Video #4[/spoiler]
Screenshots
[spoiler]

[/spoiler]
#39
General Discussion / Re: Doubt Health
Aug 22, 2019, 01:52 PM
Quote from: Mack on Aug 22, 2019, 06:18 AMfunction onPlayerHealthChange( player, lastHP, newHP )
{
     if ( lastHP > newHP ) MessagePlayer( "You just lost " + ( lastHP - newHP ) + " health.", player );
}

https://wiki.vc-mp.org/wiki/OnPlayerHealthChange

thanks friend ;) ;) ;D ;D
#40
General Discussion / Doubt Health
Aug 22, 2019, 05:53 AM
:o :o
good night friend is there any way to know what amount of health i lost? example I have health at 100 and I fall from a height and it reduces me% 10 health how can I get the result that I lost that %10?

Well, I want to see in a message that I lost 10 health
??? ??? ::)
#41
good night my friend, my suggestion is that if you could add these audio functions you could add mp3 from the store

FindSound( "Store/Audio/Audio.mp3" );
Sound.Open
Sound.Play
Sound.Pause
Sound.Stop



function of http://liberty-unleashed.co.uk

function onPlayerCommand( pPlayer, szCommand, szText )
{
if ( szCommand == "moo" )
{
local sound = FindSound( "moo.mp3" );
if ( sound )
{
sound.Open( pPlayer );
sound.Play( pPlayer );
sound.Close( pPlayer );
}
}
return 1;
}



#42
Quote from: Xenon on Jun 25, 2019, 09:01 PMYes, you can disable sprint by giving HEAVY flag to your weapons (but then you can't jump also), or by changing ID of wep behaves as eg. M60
friend could you pass me n example use SetWeaponDataValue( 17 , 24 , GetWeaponDataValue( 32 , 24 ))
and it does not work
#43
Quote from: Sebastian on Feb 27, 2015, 04:10 PM
QuoteCObject * CPlayer::StandingOnObject()
{
   int obj = functions->GetPlayerStandingOnObject( this->nPlayerId );
   if( obj < 1 )
      return NULL;
   else
   {
      this->m_standingOn.nObjectId = obj;
      return &this->m_standingOn;
   }
}

Seems like it just returns if a player is or not on an object.
But if you tried it, and it doesn't work, then you may be needed to use a function on the object first, so it can answer to your function.
The function may be this one:

object.SetReportingBumps( bool toReport )
Here is the vcmp squirrel source. You can find there the info you need, until the wiki will be completed.


hello friend could you pass a better explained example @Sebastian ;D
#44
Quote from: Xenon on Jun 25, 2019, 09:01 PMYes, you can disable sprint by giving HEAVY flag to your weapons (but then you can't jump also), or by changing ID of wep behaves as eg. M60
ok friend the function is like this?

SetWeaponDataValue( 17 , 24 , 32832)
it does not work
#45
Script and Content Requests / help - Sprint
Jun 25, 2019, 12:11 AM

there is some way to prevent them from using sprints that can not be run on the server that when trying to run just walk ??? ???