AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Class CT for BaseBuilder (https://forums.alliedmods.net/showthread.php?t=297224)

Raul3w 05-08-2017 16:00

Class CT for BaseBuilder
 
Hi.
I want a plug-in for my BaseBuilder server, which I can play at the beginning of the round.
1.Player: m4a1 + deagle + 1 grenad freez,
2.Admin: Ak47 + deagle + 1 he grenade + freeze grenade.
3.Vip:AK47 + M4a1 + AWP + deagle +2 he grenade +2 freeze grenade
This menu can be chosen at the beginning of the round and the access of the vip is bit, and admin is a bitch, please be with the command / weapon and only once to access it.
Please help me with this plugin.

edon1337 05-08-2017 16:38

Re: Class CT for BaseBuilder
 
Quote:

Originally Posted by Raul3w (Post 2519196)
and admin is a bitch


Raul3w 05-12-2017 12:53

Re: Class CT for BaseBuilder
 
Quote:

Quote:
Originally Posted by Raul3w
and admin is a bitch
Grad acces its bitch for helper acces

Amine Belokda 05-12-2017 14:43

Re: Class CT for BaseBuilder
 
I Creat This For You :)
PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define ADMIN_ACCES ADMIN_KICK // "c"
#define VIP_ACCES ADMIN_LEVEL_H // "t"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_spawn_post"1)
}

public 
fw_spawn_post(id)
{
    
/*------| Weapons M4a1 |-------------*/
    
give_item(id"weapon_m4a1")
    
cs_set_user_bpammoidCSW_M4A1100)
    
/*------| Weapons deagle |-------------*/
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammoidCSW_DEAGLE100)
    
/*------| Freez Grenade |-------------*/
    
give_item (id,"weapon_smokegrenade")
          
cs_set_user_bpammo(idCSW_SMOKEGRENADEcs_get_user_bpammo(idCSW_SMOKEGRENADE) + 1)    
    
/*------| Admin Spawn |---------------*/
    
Admin_Spawn(id)
    
/*------| ViP Spawn |-----------------*/
    
ViP_Spawn(id)
}

public 
Admin_Spawn(id){
    if( 
get_user_flags(id) & ADMIN_ACCES)
    {
         
give_item (id,"weapon_hegrenade")
         
cs_set_user_bpammo(idCSW_HEGRENADEcs_get_user_bpammo(idCSW_HEGRENADE) + 1)    
    }
}

public 
ViP_Spawn(id){
    if( 
get_user_flags(id) & VIP_ACCES)
    {
         
give_item (id,"weapon_hegrenade")
         
cs_set_user_bpammo(idCSW_HEGRENADEcs_get_user_bpammo(idCSW_HEGRENADE) + 1)    
    }



Raul3w 05-13-2017 11:17

Re: Class CT for BaseBuilder
 
its problem
/tmp/text6cT1rN.sma(2) : fatal error 100: cannot read from file: " "
please complie amxx and download this topic.

OciXCrom 05-13-2017 13:36

Re: Class CT for BaseBuilder
 
If you have an error, it's a problem with your files. The plugin compiles just fine.

Raul3w 05-14-2017 03:42

Re: Class CT for BaseBuilder
 
im complied web and my pc


All times are GMT -4. The time now is 23:27.

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