Raised This Month: $ Target: $400
 0% 

Solved Randome cmd not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
maclarens
Senior Member
Join Date: Jul 2020
Location: Kz
Old 06-12-2023 , 21:22   Randome cmd not working
Reply With Quote #1

can you pls tell me why randome tank give not working , forever give 4 tanks?!


Code:
public void TankBox(int client)
{
    for (int i = 1; i < 5; i++)
    {
        sm_give(client, "z_spawn", "tank auto");
    }
 }


void sm_give(int client, char[] command, char[]="" arguments)
{
if (client)
    {
     int flags = GetCommandFlags(command);
     SetCommandFlags(command, flags & ~FCVAR_CHEAT);
     FakeClientCommand(client, "%s%s", command, arguments);
     SetCommandFlags(command, flags);
    }
}

Last edited by maclarens; 09-16-2023 at 14:08. Reason: more details
maclarens is offline
 



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 19:16.


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