Raised This Month: $51 Target: $400
 12% 

[CS:S | CS:GO] Zprops


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kurumi
Junior Member
Join Date: Jan 2023
Plugin ID:
8436
Plugin Version:
1.2.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to spawn in-game props using credits. Re-write original, see https://forums.alliedmods.net/showthread.php?p=1893141.
    Old 04-09-2023 , 14:24   [CS:S | CS:GO] Zprops
    Reply With Quote #1

    Description:
    Allows players to create props in-game based on "credits", which are accrued through gameplay and are not saved on disconnect / map changes.

    ConVars:
    • zprop_credits_max - Max credits that can be attained (0: No limit).
    • zprop_credits_connect - The number of free credits a player received when they join the game.
    • zprop_credits_spawn - The number of free credits given on spawn.
    • zprop_credits_infect - The number of credits given for infecting a human as zombie.
    • zprop_credits_kill - The number of credits given for killing a zombie as human.
    • zprop_credits_roundstart - The number of free credits given on start of the round.

    GitHub repo.
    Attached Files
    File Type: smx zprop_csgo_fixed.smx (9.9 KB, 52 views)
    File Type: sp Get Plugin or Get Source (zprop_csgo_fixed.sp - 47 views - 8.0 KB)
    File Type: zip zprop-master.zip (3.34 MB, 69 views)
    kurumi is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 04-10-2023 , 08:18   Re: [CS:S | CS:GO] Zprops
    Reply With Quote #2

    Fixed some bugs, added necessary checks (for example, suicides and bots will not be given credits), slightly optimized the code.
    Added limit for creating entities to avoid error "ED_Alloc: no free edicts".
    PHP Code:
    //// zprop_csgo_fixed 1.2.0.sp
    //
    // Code size:         35116 bytes
    // Data size:         8172 bytes
    // Stack/heap size:      18960 bytes
    // Total requirements:   62248 bytes
    //
    // Compilation Time: 0,45 sec
    // ----------------------------------------

    //// zprop 1.2.1.sp
    //
    // Code size:         35344 bytes
    // Data size:         8204 bytes
    // Stack/heap size:      18512 bytes
    // Total requirements:   62060 bytes
    //
    // Compilation Time: 0,39 sec
    // ---------------------------------------- 
    Attached Files
    File Type: sp Get Plugin or Get Source (zprop 1.2.1.sp - 56 views - 7.9 KB)
    __________________

    Last edited by Grey83; 04-10-2023 at 12:21.
    Grey83 is offline
    kurumi
    Junior Member
    Join Date: Jan 2023
    Old 04-10-2023 , 13:31   Re: [CS:S | CS:GO] Zprops
    Reply With Quote #3

    Quote:
    Originally Posted by Grey83 View Post
    Fixed some bugs, added necessary checks (for example, suicides and bots will not be given credits), slightly optimized the code.
    Added limit for creating entities to avoid error "ED_Alloc: no free edicts".
    PHP Code:
    //// zprop_csgo_fixed 1.2.0.sp
    //
    // Code size:         35116 bytes
    // Data size:         8172 bytes
    // Stack/heap size:      18960 bytes
    // Total requirements:   62248 bytes
    //
    // Compilation Time: 0,45 sec
    // ----------------------------------------

    //// zprop 1.2.1.sp
    //
    // Code size:         35344 bytes
    // Data size:         8204 bytes
    // Stack/heap size:      18512 bytes
    // Total requirements:   62060 bytes
    //
    // Compilation Time: 0,39 sec
    // ---------------------------------------- 
    thx for fixes!
    kurumi is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:44.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode