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);
}
}