Raised This Month: $51 Target: $400
 12% 

[ REQ ] Zeus Mode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tom .
Member
Join Date: May 2016
Old 08-05-2016 , 07:33   [ REQ ] Zeus Mode
Reply With Quote #1

Hello. Want plugin that provides unlimited powers of God.
This include:
  • god mode
  • no clip
  • glow red
  • skin
  • and weapons: M4A1 & DEAGLE

Acces: ADMIN_RCON
Chat message: Admin "name" turn on ZEUS MODE and Admin "name" turn off ZEUS MODE.\
Commands: amx_zmon and amx_zmoff

Tks.
tom . is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-05-2016 , 08:22   Re: [ REQ ] Zeus Mode
Reply With Quote #2

What skin?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
tom .
Member
Join Date: May 2016
Old 08-05-2016 , 08:24   Re: [ REQ ] Zeus Mode
Reply With Quote #3

skin for player > http://gamebanana.com/skins/145932
tom . is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-05-2016 , 08:37   Re: [ REQ ] Zeus Mode
Reply With Quote #4

Everything is in there except for the skin.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define PLUGIN "Zeus Mode"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new bool:HasZeus[32]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("amx_zmon""EnableZeusMode")
    
register_clcmd("amx_zmoff""DisableZeusMode")
}

public 
client_putinserver(id) {
    
HasZeus[id] = false
}

public 
client_disconnect(id) {
    
HasZeus[id] = false
}

public 
EnableZeusMode(id) {
    if(
get_user_flags(id) & ADMIN_RCON) {
        if(
HasZeus[id] == true) {
            
client_print(idprint_chat"[AMXX] You already have zeus mode enabled.")
            return 
PLUGIN_HANDLED
        
}
        
        new 
szName[32]; get_user_name(idszNamecharsmax(szName))
        
        
set_user_godmode(id1)
        
set_user_noclip(id1)
        
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25)
        
give_item(id"weapon_m4a1")
        
give_item(id"weapon_deagle")
        
        
cs_set_user_bpammo(idCSW_M4A190)
        
cs_set_user_bpammo(idCSW_DEAGLE35)
        
        
HasZeus[id] = true
        
        client_print
(0print_chat"Admin %s turned on ZEUS MODE"szName)
    } else {
        
client_print(idprint_chat"[AMXX] You have no access to this command.")
        return 
PLUGIN_HANDLED
    
}
}

public 
DisableZeusMode(id) {
    if(
get_user_flags(id) & ADMIN_RCON) {
        if(
HasZeus[id] == false) {
            
client_print(idprint_chat"[AMXX] You already have zeus mode disabled.")
            return 
PLUGIN_HANDLED
        
}
        
        new 
szName[32]; get_user_name(idszNamecharsmax(szName))
        
        
set_user_godmode(id0)
        
set_user_noclip(id0)
        
set_user_rendering(id)
        
        
HasZeus[id] = false
        
        client_print
(0print_chat"Admin %s turned off ZEUS MODE"szName)
    } else {
        
client_print(idprint_chat"[AMXX] You have no access to this command.")
        return 
PLUGIN_HANDLED
    
}

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-05-2016 , 08:57   Re: [ REQ ] Zeus Mode
Reply With Quote #5

This version is with the model. I took model code part from someone else's code so i'm not sure if this will actually work.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "Zeus Mode"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new bool:HasZeus[32]

new 
g_player_model[33][32]
new 
g_ent_playermodel[33]

new const 
PLAYERMODEL_CLASSNAME[] = "ent_playermodel"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("amx_zmon""EnableZeusMode")
    
register_clcmd("amx_zmoff""DisableZeusMode")
    
    
RegisterHam(Ham_Spawn"player""FwPlayerSpawnPost"1)
}

public 
plugin_precache() {
    new 
model[100]
    
formatex(modelcharsmax(model), "models/player/leet/leet.mdl")
    
engfunc(EngFunc_PrecacheModelmodel)
}

public 
FwPlayerSpawnPost(id) {
    if(!
is_user_alive(id)) {
        return 
PLUGIN_HANDLED
    
}
    
    if(
HasZeus[id] == true) {
        
copy(g_player_model[id], charsmax(g_player_model[]), "leet")
        
fm_set_playermodel_ent(idg_player_model[id])
        
    } else if(
fm_has_custom_model(id)) {
        
fm_remove_model_ents(id)
    }
    return 
PLUGIN_HANDLED
}

public 
client_putinserver(id) {
    
HasZeus[id] = false
}

public 
client_disconnect(id) {
    
HasZeus[id] = false
    
    
if(fm_has_custom_model(id)) {
        
fm_remove_model_ents(id)
    }
}

public 
EnableZeusMode(id) {
    if(
get_user_flags(id) & ADMIN_RCON) {
        if(
HasZeus[id] == true) {
            
client_print(idprint_chat"[AMXX] You already have zeus mode enabled.")
            return 
PLUGIN_HANDLED
        
}
        
        new 
szName[32]; get_user_name(idszNamecharsmax(szName))
        
        
set_user_godmode(id1)
        
set_user_noclip(id1)
        
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25)
        
give_item(id"weapon_m4a1")
        
give_item(id"weapon_deagle")
        
        
cs_set_user_bpammo(idCSW_M4A190)
        
cs_set_user_bpammo(idCSW_DEAGLE35)
        
        
HasZeus[id] = true
        
        client_print
(0print_chat"Admin %s turned on ZEUS MODE"szName)
        
        
copy(g_player_model[id], charsmax(g_player_model[]), "leet")
        
fm_set_playermodel_ent(idg_player_model[id])
    } else {
        
client_print(idprint_chat"[AMXX] You have no access to this command.")
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
}

public 
DisableZeusMode(id) {
    if(
get_user_flags(id) & ADMIN_RCON) {
        if(
HasZeus[id] == false) {
            
client_print(idprint_chat"[AMXX] You already have zeus mode disabled.")
            return 
PLUGIN_HANDLED
        
}
        
        new 
szName[32]; get_user_name(idszNamecharsmax(szName))
        
        
set_user_godmode(id0)
        
set_user_noclip(id0)
        
set_user_rendering(id)
        
        
HasZeus[id] = false
        
        client_print
(0print_chat"Admin %s turned off ZEUS MODE"szName)
        
        
fm_remove_model_ents(id)
    } else {
        
client_print(idprint_chat"[AMXX] You have no access to this command.")
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
}

stock fm_set_playermodel_entid, const modelname[] )
{
    
// Make original player entity invisible
    
set_pevidpev_rendermodekRenderTransTexture )
    
// This is not 0 because it would hide the shadow and some effects when firing weapons
    
set_pevidpev_renderamt1.0 )
    
    
// Since we're passing the short model name to the function
    // we need to make the full path out of it
    
static modelpath[100]
    
formatexmodelpathcharsmaxmodelpath ), "models/player/%s/%s.mdl"modelnamemodelname )
    
    
// Check if the entity assigned to this player exists
    
if ( !pev_validg_ent_playermodel[id] ) )
    {
        
// If it doesn't, proceed to create a new one
        
g_ent_playermodel[id] = engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString"info_target" ) )
        
        
// If it failed to create for some reason, at least this will prevent further "Invalid entity" errors...
        
if ( !pev_validg_ent_playermodel[id] ) ) return;
        
        
// Set its classname
        
set_pevg_ent_playermodel[id], pev_classnamePLAYERMODEL_CLASSNAME )
        
        
// Make it follow the player
        
set_pevg_ent_playermodel[id], pev_movetypeMOVETYPE_FOLLOW )
        
set_pevg_ent_playermodel[id], pev_aimentid )
        
set_pevg_ent_playermodel[id], pev_ownerid )
    }
    
    
// Entity exists now, set its model
    
engfuncEngFunc_SetModelg_ent_playermodel[id], modelpath )
}

stock fm_has_custom_modelid )
{
    return 
pev_validg_ent_playermodel[id] ) ? true false;
}

stock fm_remove_model_entsid )
{
    
// Make the player visible again
    
set_pevidpev_rendermodekRenderNormal )
    
    
// Remove "playermodel" ent if present
    
if ( pev_validg_ent_playermodel[id] ) )
    {
        
engfuncEngFunc_RemoveEntityg_ent_playermodel[id] )
        
g_ent_playermodel[id] = 0
    
}

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 07:01.


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