Resource: Give rp // nonhost kick . - Page 2 - NextGenUpdate
Page 2 of 2 First 1 2
THREAD: Give rp // nonhost kick .
  1. 08-17-2017, 09:44 AM
    #1
    Bosix123's Avatar
    Bosix123
    I am error
    Bosix123's Avatar
    Bosix123
    I am error
    71
    Posts
    317
    Reputation
    Sep 2016
    NextGenUpdate
    Rank
    Spoiler:
    addOption("DeRank Player -10,000 RP");
    addOption("Rank Up Player 10,000 RP");
    switch (getOption())
    {
    case 1: {
    int Args[5];
    Args[0] = 0xD8;
    Args[1] = selectedPlayer;
    Args[2] = 10000;
    Args[3] = 0;
    Args[4] = 0;
    TriggerScriptEvent(Args, 5, selectedPlayer);
    } break;
    case 2: {
    int Args[5];
    Args[0] = 0xD8;
    Args[1] = selectedPlayer;
    Args[2] = -10000;
    Args[3] = 0;
    Args[4] = 0;
    TriggerScriptEvent(Args, 5, selectedPlayer);
    } break;



    NonHost
    Spoiler:

    addOption ("Kick(HOST)");


    switch (getOption())
    {


    case 1: {
    int NetworkOptions = selectedPlayer;
    int Args[3];
    Args[0] = 2;
    Args[1] = NetworkOptions;
    Args[2] = 0x35;
    TriggerScriptEvent(Args, 3, NetworkOptions);


    }
    }
    break;


    Spoiler:

    #pragma region GIVE RP
    static void TriggerScriptEvent(int* Args, int ArgCount, Player BitsetPlayer)
    {
    int Bitset = 0;
    GAMEPLAY::SET_BIT(&Bitset, BitsetPlayer);
    if (Bitset != 0) {
    SCT::TRIGGER_SCT_EVENT2(1, Args, ArgCount, Bitset);
    }
    }

    #pragma endregion

    Spoiler:

    static void SET_BIT(int* var, int bit) { invoke<Void>(0x4EFE7E6B, var, bit); } // 0x4EFE7E6B

    Don't take any credits of this . Have no clue who founded it ! good luck w ur sprx projects . ( This is working w 2much4u base i think )
    Last edited by StarIsBack; 08-17-2017 at 10:55 AM. Reason: Fixed Spoiler

  2. The Following 2 Users Say Thank You to Bosix123 For This Useful Post:

    ,

  3. The Following 2 Users Groaned At Bosix123 For This Awful Post:

    ,

  4. 12-17-2017, 04:17 AM
    #11
    37
    Posts
    210
    Reputation
    Mar 2016
    NextGenUpdate
    Sponsored Links

    How do i add this to 2much4u's base i have tryed but it does it to a random player?
  5. Sponsored Links
  6. 12-19-2017, 11:40 AM
    #12
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    120
    Posts
    150
    Reputation
    Nov 2014
    NextGenUpdate
    TriggerScriptEvent
    It is not defined
  7. 12-19-2017, 12:40 PM
    #13
    NotYourDope's Avatar
    NotYourDope
    Whose dope is it?
    NotYourDope's Avatar
    NotYourDope
    Whose dope is it?
    1,105
    Posts
    29,889
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ruben_92 View Post
    TriggerScriptEvent
    It is not defined
    Don't copy and paste.
  8. The Following 2 Users Say Thank You to NotYourDope For This Useful Post:

    ,

  9. 12-20-2017, 02:45 AM
    #14
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    120
    Posts
    150
    Reputation
    Nov 2014
    NextGenUpdate
    If you write it and the error comes out
  10. 12-21-2017, 08:19 AM
    #15
    John's Avatar
    John
    skid
    John's Avatar
    John
    skid
    1,828
    Posts
    65,694
    Reputation
    Dec 2012
    NextGenUpdate
    Cleaned up this shitty coding. Using arrays like that is a waste of time and space. You're probably gonna need your own malloc/calloc implementation.

  11. 12-21-2017, 01:17 PM
    #16
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    ruben_92's Avatar
    ruben_92
    Do a barrel roll!
    120
    Posts
    150
    Reputation
    Nov 2014
    NextGenUpdate
    you using base 2muc4u
  12. 12-26-2017, 03:13 PM
    #17
    modzandyolo's Avatar
    modzandyolo
    Save Point
    modzandyolo's Avatar
    modzandyolo
    Save Point
    6
    Posts
    50
    Reputation
    Sep 2017
    NextGenUpdate
    How do you find those triggerscripts? (like 0xD8 for giving away ranks)
Page 2 of 2 First 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •