[APORT3] /swap, /revive, /grav, /speed - ChrstopH - 06-30-2017
es un plugin que un cabrón me pidió por steam para un DR pero se puede usar para cualquiera v:
/revive nick y los otros comandos..
para configurar la grav y speed tienen que tocar el code SI O SI.
Código PHP: /* Script generated by Pawn Studio */
#include <amxmodx> #include <amxmisc> #include hamsandwich #include <cstrike> #include fun
#define PLUGIN "New Plugin" #define AUTHOR "autor" #define VERSION "1.0"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your own code here register_clcmd("say", "clcmd_say"); } public clcmd_say( index ){ if (!is_user_connected( index )) return PLUGIN_HANDLED;
new szMessage[32]; read_args(szMessage, charsmax(szMessage)); remove_quotes(szMessage);
if (equal(szMessage, "/swap",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0);
if (!player) return PLUGIN_CONTINUE;
cmd_Cmd(index, player, 3); } else if (equal(szMessage, "/revive",7) && is_user_admin( index )) { new player = cmd_target( index , szMessage[8], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 2); } else if (equal(szMessage, "/speed",6) && is_user_admin( index )) { new player = cmd_target( index , szMessage[7], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 0); } else if (equal(szMessage, "/grav",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 1); } return PLUGIN_HANDLED_MAIN; } public cmd_Cmd(id, target, tipo) { if (is_user_admin( id )) { new player, iName[32][2]; if (target) player = target else { new arg[32] read_argv(1, arg, 31) player = cmd_target(id, arg, CMDTARGET_ALLOW_SELF) } get_user_name(id, iName[0], 31); get_user_name(player, iName[1], 31); if (!player || !is_user_connected(player)) return PLUGIN_HANDLED;
switch(tipo){ case 0: set_user_maxspeed( player, 300.0 ); case 1: set_user_gravity( player, 0.3 ); case 2: ExecuteHamB(Ham_CS_RoundRespawn, player); case 3: cs_set_user_team(player,( cs_get_user_team(player) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)); } set_hudmessage(0, 255, 0, -1.0, -1.0) show_hudmessage(id, "El admin %s te %s! ", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team"); client_print(id, print_chat, "El admin %s %s a %s", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team", iName[player][1]) } return PLUGIN_HANDLED; }
No lo probe pero seguro sirve v:
RE: [APORT3] /swap, /revive, /grav, /speed - angel123 - 06-30-2017
(06-30-2017, 04:08 AM)ChrstopH escribió: es un plugin que un cabrón me pidió por steam para un DR pero se puede usar para cualquiera v:
/revive nick y los otros comandos..
para configurar la grav y speed tienen que tocar el code SI O SI.
Código PHP: /* Script generated by Pawn Studio */
#include <amxmodx> #include <amxmisc> #include hamsandwich #include <cstrike> #include fun
#define PLUGIN "New Plugin" #define AUTHOR "autor" #define VERSION "1.0"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your own code here register_clcmd("say", "clcmd_say"); } public clcmd_say( index ){ if (!is_user_connected( index )) return PLUGIN_HANDLED;
new szMessage[32]; read_args(szMessage, charsmax(szMessage)); remove_quotes(szMessage);
if (equal(szMessage, "/swap",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0);
if (!player) return PLUGIN_CONTINUE;
cmd_Cmd(index, player, 3); } else if (equal(szMessage, "/revive",7) && is_user_admin( index )) { new player = cmd_target( index , szMessage[8], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 2); } else if (equal(szMessage, "/speed",6) && is_user_admin( index )) { new player = cmd_target( index , szMessage[7], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 0); } else if (equal(szMessage, "/grav",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 1); } return PLUGIN_HANDLED_MAIN; } public cmd_Cmd(id, target, tipo) { if (is_user_admin( id )) { new player, iName[32][2]; if (target) player = target else { new arg[32] read_argv(1, arg, 31) player = cmd_target(id, arg, CMDTARGET_ALLOW_SELF) } get_user_name(id, iName[0], 31); get_user_name(player, iName[1], 31); if (!player || !is_user_connected(player)) return PLUGIN_HANDLED;
switch(tipo){ case 0: set_user_maxspeed( player, 300.0 ); case 1: set_user_gravity( player, 0.3 ); case 2: ExecuteHamB(Ham_CS_RoundRespawn, player); case 3: cs_set_user_team(player,( cs_get_user_team(player) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)); } set_hudmessage(0, 255, 0, -1.0, -1.0) show_hudmessage(id, "El admin %s te %s! ", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team"); client_print(id, print_chat, "El admin %s %s a %s", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team", iName[player][1]) } return PLUGIN_HANDLED; }
No lo probe pero seguro sirve v:
Nose ni verga de esto,pero se ve bueno
RE: [APORT3] /swap, /revive, /grav, /speed - Fury - 06-30-2017
Te lo pidió en AM
RE: [APORT3] /swap, /revive, /grav, /speed - escobar - 06-30-2017
(06-30-2017, 04:08 AM)ChrstopH escribió: es un plugin que un cabrón me pidió por steam para un DR pero se puede usar para cualquiera v:
/revive nick y los otros comandos..
para configurar la grav y speed tienen que tocar el code SI O SI.
Código PHP: /* Script generated by Pawn Studio */
#include <amxmodx> #include <amxmisc> #include hamsandwich #include <cstrike> #include fun
#define PLUGIN "New Plugin" #define AUTHOR "autor" #define VERSION "1.0"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your own code here register_clcmd("say", "clcmd_say"); } public clcmd_say( index ){ if (!is_user_connected( index )) return PLUGIN_HANDLED;
new szMessage[32]; read_args(szMessage, charsmax(szMessage)); remove_quotes(szMessage);
if (equal(szMessage, "/swap",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0);
if (!player) return PLUGIN_CONTINUE;
cmd_Cmd(index, player, 3); } else if (equal(szMessage, "/revive",7) && is_user_admin( index )) { new player = cmd_target( index , szMessage[8], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 2); } else if (equal(szMessage, "/speed",6) && is_user_admin( index )) { new player = cmd_target( index , szMessage[7], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 0); } else if (equal(szMessage, "/grav",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 1); } return PLUGIN_HANDLED_MAIN; } public cmd_Cmd(id, target, tipo) { if (is_user_admin( id )) { new player, iName[32][2]; if (target) player = target else { new arg[32] read_argv(1, arg, 31) player = cmd_target(id, arg, CMDTARGET_ALLOW_SELF) } get_user_name(id, iName[0], 31); get_user_name(player, iName[1], 31); if (!player || !is_user_connected(player)) return PLUGIN_HANDLED;
switch(tipo){ case 0: set_user_maxspeed( player, 300.0 ); case 1: set_user_gravity( player, 0.3 ); case 2: ExecuteHamB(Ham_CS_RoundRespawn, player); case 3: cs_set_user_team(player,( cs_get_user_team(player) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)); } set_hudmessage(0, 255, 0, -1.0, -1.0) show_hudmessage(id, "El admin %s te %s! ", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team"); client_print(id, print_chat, "El admin %s %s a %s", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team", iName[player][1]) } return PLUGIN_HANDLED; }
No lo probe pero seguro sirve v:
+Rep papi gracias por el plugin :3333
(06-30-2017, 04:23 AM)Fury escribió: Te lo pidió en AM
no se lo pedi a el en si, si no al que me ayudara xD. Pero le hable por mp en steam c:
(06-30-2017, 04:08 AM)ChrstopH escribió: es un plugin que un cabrón me pidió por steam para un DR pero se puede usar para cualquiera v:
/revive nick y los otros comandos..
para configurar la grav y speed tienen que tocar el code SI O SI.
Código PHP: /* Script generated by Pawn Studio */
#include <amxmodx> #include <amxmisc> #include hamsandwich #include <cstrike> #include fun
#define PLUGIN "New Plugin" #define AUTHOR "autor" #define VERSION "1.0"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your own code here register_clcmd("say", "clcmd_say"); } public clcmd_say( index ){ if (!is_user_connected( index )) return PLUGIN_HANDLED;
new szMessage[32]; read_args(szMessage, charsmax(szMessage)); remove_quotes(szMessage);
if (equal(szMessage, "/swap",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0);
if (!player) return PLUGIN_CONTINUE;
cmd_Cmd(index, player, 3); } else if (equal(szMessage, "/revive",7) && is_user_admin( index )) { new player = cmd_target( index , szMessage[8], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 2); } else if (equal(szMessage, "/speed",6) && is_user_admin( index )) { new player = cmd_target( index , szMessage[7], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 0); } else if (equal(szMessage, "/grav",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0)
if (!player) return PLUGIN_CONTINUE
cmd_Cmd( index , player, 1); } return PLUGIN_HANDLED_MAIN; } public cmd_Cmd(id, target, tipo) { if (is_user_admin( id )) { new player, iName[32][2]; if (target) player = target else { new arg[32] read_argv(1, arg, 31) player = cmd_target(id, arg, CMDTARGET_ALLOW_SELF) } get_user_name(id, iName[0], 31); get_user_name(player, iName[1], 31); if (!player || !is_user_connected(player)) return PLUGIN_HANDLED;
switch(tipo){ case 0: set_user_maxspeed( player, 300.0 ); case 1: set_user_gravity( player, 0.3 ); case 2: ExecuteHamB(Ham_CS_RoundRespawn, player); case 3: cs_set_user_team(player,( cs_get_user_team(player) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)); } set_hudmessage(0, 255, 0, -1.0, -1.0) show_hudmessage(id, "El admin %s te %s! ", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team"); client_print(id, print_chat, "El admin %s %s a %s", iName[id][0], tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team", iName[player][1]) } return PLUGIN_HANDLED; }
No lo probe pero seguro sirve v: oye we 1er bug xD cuando das /swap solamente te cambia a T pero no te manda a la base (en mi caso deathrun)
RE: [APORT3] /swap, /revive, /grav, /speed - ChrstopH - 06-30-2017
(06-30-2017, 04:23 AM)Fury escribió: Te lo pidió en AM
me lo mando en steam
dr FIX
[spoiler]
Código PHP: /* Script generated by Pawn Studio */
#include <amxmodx> #include <amxmisc> #include hamsandwich #include <cstrike> #include fun
#define PLUGIN "New Plugin" #define AUTHOR "Unknown" #define VERSION "1.0"
new const g_isSound[] = "gemi2.wav";
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your own code here register_clcmd("say", "clcmd_say"); } public plugin_precache() precache_player_Sound(g_isSound); public clcmd_say( index ){ if (!is_user_connected( index )) return PLUGIN_HANDLED; new szMessage[32]; read_args(szMessage, charsmax(szMessage)); remove_quotes(szMessage); if (equal(szMessage, "/swap",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0); if (!player) return PLUGIN_CONTINUE; cmd_Cmd(index, player, 3); } else if (equal(szMessage, "/revive",7) && is_user_admin( index )) { new player = cmd_target( index , szMessage[8], 0) if (!player) return PLUGIN_CONTINUE cmd_Cmd( index , player, 2); } else if (equal(szMessage, "/speed",6) && is_user_admin( index )) { new player = cmd_target( index , szMessage[7], 0) if (!player) return PLUGIN_CONTINUE cmd_Cmd( index , player, 0); } else if (equal(szMessage, "/grav",5) && is_user_admin( index )) { new player = cmd_target( index , szMessage[6], 0) if (!player) return PLUGIN_CONTINUE cmd_Cmd( index , player, 1); } return PLUGIN_HANDLED_MAIN; } public cmd_Cmd(id, target, tipo) { if (is_user_admin( id )) { new player; if (target) player = target else { new arg[32] read_argv(1, arg, 31) player = cmd_target(id, arg, CMDTARGET_ALLOW_SELF) } if (!player || !is_user_connected(player)) return PLUGIN_HANDLED; switch(tipo){ case 0: set_user_maxspeed( player, 300.0 ); case 1: set_user_gravity( player, 0.3 ); case 2: ExecuteHamB(Ham_CS_RoundRespawn, player); case 3:{ cs_set_user_team(player,( cs_get_user_team(player) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T)); if (is_user_alive(player)) ExecuteHamB(Ham_CS_RoundRespawn, player) } } new szAdminName[32],szPlayerName[32] get_user_name(id,szAdminName,31); get_user_name(player, szPlayerName, 31); PlaySound(id, g_isSound); set_hudmessage(0, 255, 0, -1.0, -1.0) show_hudmessage(id, "El admin %s te %s! ", szAdminName, tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team"); chatcolor(id, "El admin ^4%s %s ^1a ^4%s", szAdminName, tipo == 0 ? "Dio Speed" : tipo == 1 ? "Dio Gravedad" : tipo == 2 ? "revivio" :"cambio de team", szPlayerName); } return PLUGIN_HANDLED; } PlaySound(const id, const sound[]) { client_cmd(id, "%s ^"%s^"", !IsMp3(sound) ? "spk" : "mp3 play", sound); }
IsMp3(const szSound[]) return equali(szSound[strlen(szSound) - 4], ".mp3"); stock precache_player_Sound(const soundd[]) { if (IsMp3(soundd)) precache_generic(soundd); else precache_sound(soundd); } stock chatcolor(id, const input[], any:...) { static szMsg[191], msgSayText; if (!msgSayText) msgSayText = get_user_msgid("SayText"); vformat(szMsg, 190, input, 3); replace_all(szMsg, 190, "!g", "^4"); replace_all(szMsg, 190, "!y", "^1"); replace_all(szMsg, 190, "!team", "^3"); message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, .player = id); write_byte(id ? id : 33); write_string(szMsg); message_end(); }
[/spoiler]
RE: [APORT3] /swap, /revive, /grav, /speed - PlayEasymx - 07-01-2017
no tiene caso que des el nombre del player al quien le dio la cosa si esta asi: client_print(id, print_chat,"")
Edit: Cambiale a 0 xd
RE: [APORT3] /swap, /revive, /grav, /speed - ChrstopH - 07-01-2017
fue un errorsito de dedo..
que lo edite quien quiera xd
|