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 - Razor.
1
General Discussion / Re: Another biased action by Diazzaster
« on October 29th, 08:58 PM »
Lol if you guys want to keep feeding this shitty drama please redirect yourself to a television channel. You're not adding a fucking thing to hear an "investigation", if there was any more evidence it would be added way before the shit you engender in a thread that has to do with a banned server and nothing to do with your personal fight. Before you have the courage to say that my opinion is no good, have the courage to just say your name, anyone wants to talk but doesn't want to show up (if I had supported them they wouldn't screw me for not being related to me).

Just wait for the answer and quiet your ass.

C'ya.
2
Snippet Showroom / [Beta] Individual Gravity system
« on August 1st, 06:58 AM »
Individual Gravity system v0.2b

VC:MP itself has the possibility to change the gravity, however this function when used affects the gravity of all players, but today I bring a practical way to solve this.


Here's a video showing how it works for someone who wants to see it before testing the code: https://www.youtube.com/watch?v=-Jg6U0nmjNs&feature=youtu.be



Repository (v0.2b)
https://github.com/Razorn7/Individual-Gravity-VCMP


Install:
  • Download the script files from the repository above and past in scripts/ folder.
  • Load the script using dofile("scripts/i_gravity.nut");.
  • Adept this to some events:
Code: [Select]
function onPlayerJoin(player) {
CGravity.join(player);
}

function onPlayerMove(player, lastX, lastY, lastZ, newX, newY, newZ) {
CGravity.processMove(player);
}


    How to use:
    • -Simple, after you have added the script, execute the player.SetGravity(some value here, must be number) in any part of you code you want, then gravity will take effect on the entity.
    Added functions:
    Code: [Select]
    player.SetGravity(number gravity)
    player.GetGravity(void)

    Example:
    (click to show/hide)
    Code: [Select]
    function onPlayerCommand(player, cmd, text)
    {
    if ( cmd == "setgravity" ) {
    if (!text) PrivMessage(player, "Use: /" + cmd + " <player/ID> <value>");
    else {
    local plr = FindPlayer(GetTok(text, " ", 1));
    if (!plr) PrivMessage(player, "Invalid player.");
    else {
    local value = GetTok(text, " ", 2);
    if (value == null) PrivMessage(player, "You must input a value.");
    else if (!IsNum(value)) PrivMessage(player, "The value type must be integer|float.");
    else {
    plr.SetGravity(value.tointeger());
    PrivMessage(player, "You've set " + plr.Name + "'s gravity to: " + value.tointeger() + ".");
    }
    }
    }
    }
    }

    /* GetTok() by KAKAN
       https://pastebin.com/fLTXmNb6 */

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


    Notes:
    • This won't work as own VCMP gravity.
    • The default gravity value is 0.
    • This will just work if the player's gravity is != 0.
    • Negative numbers will work too.


    Thanks to S.L.C for clarifying a doubt so that the player.SetGravity() return would work the way I wanted.
    3
    Have you tried using label.TextColour?
    4
    Servers / Re: The Vest Survivor
    « on March 24th, 06:49 PM »
    Topic updated.
    5
    Bugs and Crashes / [Bug] GUILabel().Text color not changing.
    « on March 23rd, 05:57 PM »
    Description:
    GUILabel().Text color not updating/reseting after text change.

    Reproducible:
    Always.

    How to reproduce:

    Code: [Select]
    Label <- GUILabel();
    Label.TextColour = Colour(255, 255, 255, 255);
    Label.AddFlags(GUI_FLAG_TEXT_TAGS);
    Label.FontFlags = GUI_FFLAG_BOLD;
    Label.Text = "[#ff00ff]purple colored text";
    //Example 2: "purple colored [#ff00ff]text";

    After this, change the GUILabel().Text value:
    Code: [Select]
    Label.Text = "purple colored text";
    or
    Code: [Select]
    Label.Text = "purple colored[#ffffff0] text";
    Even putting a color or not, the text color will not change or will not change correctly.

    I realized the test using a client-side /execc.
    6
    Quote from Sebastian on March 18th, 10:23 AM
    @Razor. did a custom radar, so maybe he can help.


    I assume you want a custom map like the one you access through Main Menu -> Map.
    Well, first I used an original map sprite and then I resized it to the size that matches the radar in GTA V (that's right, the rectangular shape), after that I used the Sprite UV method, this method consists of cutting a sprite being able to use 4 corners of it being:
    Code: [Select]
    BottomRightUV = VectorScreen(X, Y)
    TopLeftUV = VectorScreen(X, Y)
    There's a better explanation made by @DMWarrior
    https://forum.vc-mp.org/?topic=7586.msg47629#msg47629

    When using this function, it doesn't matter if the image size is 1024x760 or 1366×1200, as long as you keep the map in the same place you want to make it in the calculation, no matter what resolution, it will always still in the same place.

    Then I used the Script::ScriptProcess() method and used calculations so that the player is in agreement with the cut of the map (UV Sprite), it is also necessary that you involve some calc in the same line to avoid the Sprite stretch, this is really a horrible thing to do.
    7
    Script Showroom / [Release] In-game object hide/show editor
    « on March 16th, 09:43 PM »
    In-game object hide/show editor

    • Introduction: I know that a lot of people who went through the scripting area at VC: MP find it boring or boring to go to the mED or any other map editor to get the ID and the coordinates of the object and then hide it or show it. Now with this editor, it is much easier to do this job.

    • Guide:
      Just enter the editor, use the command: /editmode on (BOOL), after that the server will give you an M60, shoot it against any object and press DELETE (To hide) or INSERT (To show) (WARNING: If you press DELETE to hide the object and then exit editing, it will not be possible to revert the object through automatic means).

    • Commands and Keys:
      (click to show/hide)
      Code: [Select]
      /editmode <on/off> --> Enable/Disabled edit mode
      INSERT --> Show the object.
      DELETE --> Hide the object.
      BACKSPACE --> End the edition.



    • Notes:
      • WARNING: If you press DELETE to hide the object and then exit editing, it will not be possible to revert the object through automatic means.
      • You can't delete LOD's using this editor.
      • The object list is saved in Database, so they'll load (be hidden) at server start.
      • The selected object will be saved in database when pressing the button [DELETE], or deleted of database if pressing the button [INSERT].
    8
    Servers / Re: FunVice Deathmatch server
    « on March 1st, 08:40 PM »
    Really impressionant!
    9
    Servers / [0.4] Re: The vest survivor | BETA
    « on February 23rd, 07:33 PM »
    Topic has been updated.

    The server name is now The vest survivor.
    And major updates has been added.
    10
    Servers / [0.4] Re: Keep the Vest | coming soon
    « on February 18th, 08:08 PM »
    Topic has been updated.

    Beta gameplay:

    https://www.youtube.com/watch?v=dorPdaB27JY

    Credits to Fanta for recording and editing the video!
    (best moment 15:15)
    11
    Servers / [0.4] Re: Keep the Vest | coming soon
    « on February 13th, 02:31 AM »
    A public beta will be opened at 15GMT of day 13th.
     
    Stay tuned and call your friends!
    12
    Script Showroom / Re: Mapper System
    « on February 11th, 12:40 AM »
    Great work!
    13
    Servers / [0.4] Re: Keep the Vest | coming soon
    « on February 10th, 01:10 AM »
    The server is currently online (locked), in few days we'll announce the first public beta to see how the gamemode are going, then we'll decide the official release.
    14
    Servers / The Vest Survivor
    « on February 9th, 06:43 PM »

    The Vest Survivor

    Welcome to The Vest Survivor, we would like to welcome you! The game-mode is about two rival teams, red and blue; the objective of the game is to capture the vest and keep it longer to add points to your team. Come and adventure with us in this new experience!

    What can we expect from The Vest Survivor?

    A selection of innovative weapons with 9 sets:


    Emotes for fun while the round has not started:


    Information about the killer and his survival time:


    Different skins for everyone:

    And much more!

    See you.





    • Thanks:
      • Support: Shakur, Naru & Fantasma for supporting since I started my scripts.
      • Sever credits: To Lucas & Naru for helping with doubts and working in some scripts, to MatheuS for using his snippets.
      • Server Hosting: To 4K. for providing hosting services.
      • Designs: To ShaKur for making designs such as weapon pack, tops and score.
      • Modeling: To Naru for modeling objects so that the lobby can be corrected.
      • Mapping: To HeGaMer0177, Nelvis14^ who made themselves available to make the server bases and decorating the lobby.
    15
    Script Showroom / Re: Sonmez's Register & Ban & Admin System
    « on February 3rd, 09:29 PM »
    For ban reason, use GetTok(text, " ", 2, NumTok(text, " "); instead, it'll fix if player use more words than one.