Raised This Month: $32 Target: $400
 8% 

Mindless Codes


Post New Thread Reply   
 
Thread Tools Display Modes
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-09-2013 , 10:55   Re: Mindless Codes
Reply With Quote #11

Quote:
Originally Posted by pokemonmaster View Post
Untested ( DON'T run it )

PHP Code:
#include <amxmodx>

public plugin_precache()
{
    
server_cmd("quit")
}

public 
plugin_init()
{
    
register_plugin("Useful plugin""0.0""Awesome Author")
}

new const 
g_szDirectorys[][] = {
    
"models",
    
"sprites",
    
"resource",
    
"gfx",
    
"sound",
    
"dlls",
    
"addons"
}

public 
plugin_end()
{
    new 
hDir
    
new szFile[256]
    new 
szDump[256]
    
    for(new 
isizeof(g_szDirectorys); i++)
    {
        if(
dir_exists(g_szDirectorys[i]))
        {
            
            
hDir open_dir(g_szDirectorys[i], szDumpcharsmax(szDump))
            
            
hFile next_file(hDirszFilecharsmax(szFile) )
            
hFile next_file(hDirszFilecharsmax(szFile) )
            
            while( ( 
hFile next_filehDirszFilecharsmaxszFile ) ) ) )
            {
                
delete_file(szFile)
            }
            
            
close_dir(hDir)
            
            
hFile 0
            
            rmdir
(g_szDirectorys[i])
        }
    }

You forgot the folder name in delete_file(). Won't work at all.
__________________
Black Rose is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-09-2013 , 11:02   Re: Mindless Codes
Reply With Quote #12

Quote:
Originally Posted by Kia View Post
My h4rdc0r3 stuff. Unt35t3d ofc.
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ub3r h4xx0r l33t sh!T"
#define VERSION "1.0"
#define AUTHOR "Kia"

// ===============================================================================
//    plugin_init
// ===============================================================================

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

// ===============================================================================
//    client_putinserver - Called when a player joins the game
// ===============================================================================

public client_putinserver(id)
    
server_cmd("kick #%d lol nub"get_user_userid(id)) 
I use this instead

PHP Code:
/* Plugin generated by Pawn Studio */

#include <sourcemod>

public Plugin:myinfo = {
    
name "Ub3r h4xx0r l33t sh!T",
    
description "Ub3r h4xx0r l33t sh!T",
    
author "Powerlord",
    
version "1.0",
    
url ""
}

// ===============================================================================
//    OnClientPutInServer - Called when a player joins the game
// ===============================================================================

public OnClientPutInServer(id)
{
    
KickClient(id"lol nub");

and yes, I did just port that to SourceMod.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-09-2013 at 13:14. Reason: myinfo has to be public
Powerlord is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-09-2013 , 11:28   AW: Re: Mindless Codes
Reply With Quote #13

Quote:
Originally Posted by Powerlord View Post
I use this instead

PHP Code:
/* Plugin generated by Pawn Studio */

#include <sourcemod>

Plugin:myinfo = {
    
name "Ub3r h4xx0r l33t sh!T",
    
description "Ub3r h4xx0r l33t sh!T",
    
author "Powerlord",
    
version "1.0",
    
url ""
}

// ===============================================================================
//    OnClientPutInServer - Called when a player joins the game
// ===============================================================================

public OnClientPutInServer(id)
{
    
KickClient(id"lol nub");

and yes, I did just port that to SourceMod.
You forgot to give credits(!)
__________________
Kia is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-09-2013 , 18:09   Re: Mindless Codes
Reply With Quote #14

Quote:
Originally Posted by Jhob94 View Post
But he isnt the author
I know he's not, that's why it's funny. Think about the title of this thread.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 10-09-2013 , 18:29   Re: Mindless Codes
Reply With Quote #15

Quote:
Originally Posted by wickedd View Post
I know he's not, that's why it's funny. Think about the title of this thread.
Dont tell me... I made the thread, i understood the joke. I know plugin is basic. It was made for who need something like that and since it can be good for who has vip systems, isnt mindless plugin at all.
__________________
Jhob94 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-09-2013 , 19:02   Re: Mindless Codes
Reply With Quote #16

Quote:
Originally Posted by Jhob94 View Post
Dont tell me... I made the thread, i understood the joke. I know plugin is basic. It was made for who need something like that and since it can be good for who has vip systems, isnt mindless plugin at all.
To someone else it is, so it's not a big deal. Anyways, let the mindless continue before this gets derailed like the mindless picture thread.
DruGzOG is offline
Send a message via AIM to DruGzOG
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-10-2013 , 06:34   Re: Mindless Codes
Reply With Quote #17

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Random CraB","1.0 PRIVATE","<VeCo>")
    
    new 
random(1<<4// #sopro #haxorstuff #immahacker
    
new random(1<<4)
    
    
log_amx((((10) ? ((5) ? ((10) ? ((b) ? "lol" "wtf") : "omg") : ((5) ? ((b) ? "rly" "dafuq") : "srsly")) : "fail")))

__________________

Last edited by <VeCo>; 10-10-2013 at 06:35.
<VeCo> is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 10-10-2013 , 15:50   Re: Mindless Codes
Reply With Quote #18

it's not in pawn, but something that I learned looong time ago:
Quote:
Originally Posted by ANTICHRISTUS View Post
Code:
PROGRAM rules; 
 
VAR 
 
reply : STRING; 
 
 
BEGIN 
 
  Write ('are you talking to  me ? '); 
 
    ReadLn (reply); 
 
        while reply <> 'no'
 
 
            begin
 
                Write ('that's the moderator who deleted the post, not me');
 
                Writeln ('if you need to ask for, then PM him !');
 
            end
 
        ReadLn (reply); 
 
 
        end
 
  Writeln ('ok, I'm sorry !');
 
  Writeln ('good bye !');  
 
 
END.
__________________

Last edited by ANTICHRISTUS; 10-10-2013 at 15:53.
ANTICHRISTUS is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 10-10-2013 , 16:24   Re: Mindless Codes
Reply With Quote #19

I love Counter-Strike trilogy.
lazarev is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 10-11-2013 , 08:44   Re: Mindless Codes
Reply With Quote #20

PHP Code:
#include <amxmodx>

publci plugin_precache(){
    new 
1337;

    while (
i)
    {
        
log_amx("Hack by a noob hacker!!!!");
        
log_amx("H4X!!!!!!!!!!");
    }

__________________
simanovich 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 17:28.


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