Raised This Month: $ Target: $400
 0% 

Help with this mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yan1255
Senior Member
Join Date: Jul 2011
Old 07-13-2011 , 20:15   Help with this mode
Reply With Quote #1

the code that Artifact works for me... but now i have a different problem in a different mode... so the mode is well it dosen't really has a name i downloaded it, it call AMXX-CMD... so what the mode does it's like when you write [in chat] !fadetoblack 1 it's makes the command amx_cvar mp_fadetoblack 1 now i have this problem in when i want with 3 variable [the fadetoblack has 2 the "0" and the "1"] so here some codes...

- The Code's to make the commands like !fadetoblack -
PHP Code:
new const AMXX_Cmds[][]= { "ct","t""spec","roundtime","ft","freezetime","revive","restart","rr","gag","ungag","bury","unbury""rocket","kick","ban","slay","slap","map","glow""noclip","godmode""pause""heal""weapon""ff","pass","gravity","aa","alltalk"
 "rs"
"amxx""mmenu""kmenu""bmenu","fire""speed""uberslap""superslay""unammo""drug""portal""flash""votemap""buytime""cvar""setmoney""smenu""pmenu""fadetoblack""forcecamera" 
- The Code that names the commands because when you make the command it's say's the command name like "Fadetoblack" -
PHP Code:
new const CmdName[][] = { "Counter-Terrorist Transfer""Terrorist Transfer""Spectator Transfer""Roundtime""Freezetime""Freezetime""Revive""Restart""Restart""Gag",  "Ungag""Bury""Unbury""Rocket""Kick""Ban""Slay""Slap""Map""Glow""Noclip","Godmode""Pause""Heal",
 
"Weapon""Friendlyfire""Password""Gravity""Airaccelerate""Alltalk","Restart Server""AMXX Menu""Map Menu""Kick Menu""Ban Menu""Fire""Speed""UberSlap""Super Slay""Unammo""Drug""Portal""Flash""Vote Map","Buy Time""Multi Cvar",
 
"Start Money""Slap/Slay Menu""Team Menu""FadeToBlack""ForceCamera" 
- The Code of the commands itselfs -
PHP Code:

public HandleChatCmd(idtype) {
    
    new 
message[128], cmd[33], arg[65], arg2[65],arg3[65], arg4[65], name[32];
    
read_argv (1message128);
    
get_user_name(id,name,31);
    
parse(message,cmd,32,arg,64,arg2,64,arg3,64,arg4,64);
    
    switch(
type) {
        case 
0:        client_cmd(id"amx_transfer %s ct"arg);
        case 
1:        client_cmd(id"amx_transfer %s t"arg);
        case 
2:        client_cmd(id"amx_transfer %s spec"arg);
        case 
3:        client_cmd(id"amx_cvar mp_roundtime %s"equal(arg,"") ? "3.19" arg);
        case 
4,5:    client_cmd(id"amx_cvar mp_freezetime %s"equal(arg,"") ? "4" arg);
        case 
6:        client_cmd(id"amx_revive %s"arg);
        case 
7,8:    server_cmd("sv_restart %s"equal(arg,"") ? "1" arg);
        case 
9:        client_cmd(id"amx_gag %s %s %s"argequal(arg2,"") ? "abc" arg2equal(arg3,"") ? "600" arg3);
        case 
10:    client_cmd(id"amx_ungag %s"arg);
        case 
11:    client_cmd(id"amx_bury %s"arg);
        case 
12:    client_cmd(id"amx_unbury %s"arg);
        case 
13:    client_cmd(id"amx_rocket %s"arg);
        case 
14:     client_cmd(id"amx_kick %s"arg);
        case 
15:     client_cmd(id"amx_ban %s"arg);
        case 
16:     client_cmd(id"amx_slay %s"arg);
        case 
17:     client_cmd(id"amx_slap %s"arg);
        case 
18:     client_cmd(id"amx_map %s"arg);
        case 
19:      client_cmd(id"amx_glow %s %s"argequal(arg2,"") ? "blue" arg2);
        case 
20:     client_cmd(id"amx_noclip %s %s"argarg2);
        case 
21:     client_cmd(id"amx_godmode %s %s"argarg2);
        case 
22:    client_cmd(id"amx_pause");
        case 
23:    client_cmd(id"amx_heal %s %s"argequal(arg2,"") ? "50" arg2);
        case 
24:    client_cmd(id"amx_weapon %s %s"argarg2);
        case 
25:    client_cmd(id"amx_cvar mp_friendlyfire %s"equal(arg,"") ? "1" arg);
        case 
26: {
                
server_cmd("sv_password ^"%s^""arg);
                
ColorChat(id"^x03%s^x01 has changed the password to:^x04 %s"nameequal(arg,"") ? "Password has been remove" arg);
        }
        case 
27: {
                
client_cmd(id"amx_cvar sv_gravity %s"equal(arg,"") ? "800" arg);
                
ColorChat(id"^x03%s^x01 you have change the gravity to:^x04 %s"namearg);
        }
        case 
28: {
                
client_cmd(id"amx_cvar sv_airaccelerate %s"equal(arg,"") ? "100" arg);
                
ColorChat(id"^x03%s^x01 you have change the airaccelerate to:^x04 %s"namearg);
        }
        case 
29:     client_cmd(id"amx_cvar sv_alltalk %s"equal(arg,"") ? "1" arg);
        case 
30:     server_cmd("restart");
        case 
31:     client_cmd(id"amxmodmenu");
        case 
32:     client_cmd(id"amx_mapmenu");
        case 
33:     client_cmd(id"amx_kickmenu");
        case 
34:     client_cmd(id"amx_banmenu");
        case 
35:    client_cmd(id"amx_fire %s"arg);
        case 
36:    client_cmd(id"amx_speed %s %s"argequal(arg2,"") ? "1" arg2);
        case 
37:    client_cmd(id"amx_uberslap %s"arg);
        case 
38:    client_cmd(id"amx_slay2 %s %s"argequal(arg2,"") ? "1" arg2);
        case 
39:    client_cmd(id"amx_unammo %s %s"argarg2);
        case 
40:    client_cmd(id"amx_drug %s"arg);
        case 
41:    client_cmd(id"amx_teleport %s %s %s %s"argarg2arg3arg4);
        case 
42:    client_cmd(id"amx_flash %s"arg);
        case 
43:    client_cmd(id"amx_votemap %s %s %s %s"argarg2arg3arg4);
        case 
44:    client_cmd(id"amx_cvar mp_buytime %s"equal(arg,"") ? "0.35" arg);
        case 
45:    client_cmd(id"amx_cvar %s %s"argarg2);
        case 
46:    client_cmd(id"amx_cvar mp_startmoney %s"equal(arg,"") ? "800" arg);
        case 
47:     client_cmd(id"amx_slapmenu");
        case 
48:     client_cmd(id"amx_teammenu");
        case 
49:    client_cmd(id"amx_cvar mp_fadetoblack %s"equal(arg,"") ? "0" arg);
        case 
50:    client_cmd(id"amx_cvar mp_forcecamera %s"equal(arg,"") ? "0" arg);
    }
    return 
PLUGIN_HANDLED;

__________________
yan1255 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 01:07.


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