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

Solved Delete please solved!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 09:25   Delete please solved!
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

#define PLUGIN "VIP Weapon Menu"
#define VERSION "0.1"

#define ADMIN_ACCESS ADMIN_LEVEL_H

new menu;

new 
cvar_second;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
    
cvar_second register_cvar("Show_Menu_Secondes""0.0")
    
//register_clcmd("nightvision", "Vip_menu")
    
    //register_clcmd("say /vm", "Vip_menu") // uncoment this ( remove //) to use a commande (/vm) for menu.
    //register_clcmd("say /vipmenu", "Vip_menu") // uncoment this ( remove //) to use a commande (/vipmenu) for menu.
}
public 
fw_PlayerSpawn_Post(id)

    if (!
is_user_alive(id))
        return;
        
    
set_task(get_pcvar_float(cvar_second), "Vip_menu"id)
}
        
public 
Vip_menu(id)
{
    if (!
is_user_alive(id))
        return
    
    new 
flags get_user_flags(id)
    
    
menu menu_create("\rVIP \wיקשנ""VIP_handler")
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wM4A1 \yWith \wDeagle \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dM4A1 \dWith \dDeagle \r[VIP]"""ADMIN_ACCESS)
        if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wAK47 \yWith \wDeagle \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dAK47 \dWith \dDeagle \r[VIP]"""ADMIN_ACCESS)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wAWP \yWith \wDeagle \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dAWP \dWith \dDeagle \r[VIP]"""ADMIN_ACCESS)
        
    
menu_additem(menu"\wDEAGLE \yWith \wNades"""0)        
    
menu_additem(menu"\wSHIELD \yFor \wNoobs"""0)
    
    
menu_display(idmenu0)
}
public 
VIP_handler(idmenuitem)
{
    if (!
is_user_alive(id))
        return 
PLUGIN_HANDLED 
    
    
if(item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    switch(
item)
    {
        case 
0:
        {   
            
strip_user_weapons(id)  
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammo(idCSW_M4A1100)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE50)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_knife")
        }
        case 
1:
        {   
            
strip_user_weapons(id)
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammo(idCSW_AK47100)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE50)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_knife")
        }
        case 
2:
        {   
            
strip_user_weapons(id)
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(idCSW_AWP100)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE50)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
            
give_item(id"weapon_knife")
        }
        case 
3:
        {   
            
strip_user_weapons(id)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE50)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
            
give_item(id"weapon_knife")
        }
        case 
4:
        {   
            
strip_user_weapons(id)
            
give_item(id"weapon_shield")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_knife")
        }
    }
    return 
PLUGIN_HANDLED;

The Problems
PHP Code:
//// VIP-WeaponMenu.sma
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(49) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(51) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(54) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(59) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(60) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(80) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(84) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(90) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(94) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(100) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(108) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(113) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(119) : warning 217: loose indentation
// C:\Users\User\Desktop\Counter-Strike 1.6 Dedicated hlds server ver.6153\cstrike\addons\amxmodx\scripting\VIP-WeaponMenu.sma(125) : warning 217: loose indentation
// Header size:            748 bytes
// Code size:             3628 bytes
// Data size:             2920 bytes
// Stack/heap size:      16384 bytes; estimated max. usage=42 cells (168 bytes)
// Total requirements:   23680 bytes
//
// 14 Warnings.
// Done.
//
// Compilation Time: 0.19 sec
// ---------------------------------------- 

Last edited by Electric Boy; 06-03-2017 at 14:15.
Electric Boy is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-03-2017 , 09:52   Re: Who can fix the probles in this?
Reply With Quote #2

You can ignore them. The code will still work.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 10:14   Re: Who can fix the probles in this?
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
You can ignore them. The code will still work.
Thank you
Electric Boy is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 06-03-2017 , 12:12   Re: Who can fix the probles in this?
Reply With Quote #4

thanks for taking over my code and claim it as yours because for small changes you did make -_-, even if it is not a big plugin you can't do this. -_-
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 06-03-2017 at 12:13.
yas17sin is offline
Send a message via ICQ to yas17sin
Houssam Benmouna
Senior Member
Join Date: Apr 2016
Old 06-03-2017 , 12:22   Re: Who can fix the probles in this?
Reply With Quote #5

Add #pragma tabsize 0
And All will be fine Beacuse it's not that much
Houssam Benmouna is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 13:24   Re: Who can fix the probles in this?
Reply With Quote #6

Quote:
Originally Posted by yas17sin View Post
thanks for taking over my code and claim it as yours because for small changes you did make -_-, even if it is not a big plugin you can't do this. -_-
MAn im sorry Im giving you All the Credits Sorrry
Electric Boy is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 13:25   Re: Who can fix the probles in this?
Reply With Quote #7

Quote:
Originally Posted by yas17sin View Post
thanks for taking over my code and claim it as yours because for small changes you did make -_-, even if it is not a big plugin you can't do this. -_-
I know man im sorry
Electric Boy is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 06-03-2017 , 13:49   Re: Who can fix the probles in this?
Reply With Quote #8

don't make all this, all i am telling you is to not change author names next time that's all, i only told you for your own good.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
Electric Boy
Member
Join Date: Jun 2017
Old 06-03-2017 , 13:50   Re: Who can fix the probles in this?
Reply With Quote #9

Quote:
Originally Posted by yas17sin View Post
don't make all this, all i am telling you is to not change author names next time that's all, i only told you for your own good.
Or what you will kill me? xD
Electric Boy is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 06-03-2017 , 14:00   Re: Who can fix the probles in this?
Reply With Quote #10

No he will not, but when he works for you, then you claim Author and you didn't do anything, Why ? you do the same with m4a1 plugin...
__________________
Ayman Khaled 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:05.


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