Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < hamsandwich >
- new bool:g_Enable[33];
- new const restricted_maps[ ] =
- {
- "fy_snow"
- }
- public plugin_init() {
- register_plugin( "Seizure Of Weapons", "1.0", "A k c 3n 7");
- RegisterHam( Ham_Touch, "armoury_entity", "FwdHamPlayerPickup");
- RegisterHam( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
- }
- public fwHamPlayerSpawnPost(id) {
- if(!(is_user_alive(id)))
- return;
- new map_name[32], i;
- get_mapname(map_name, charsmax(map_name));
- for(i = 0; i < sizeof(restricted_maps); i++)
- {
- if(equali(map_name, restricted_maps[i]))
- {
- g_Enable[id] = true;
- }
- }
- }
- public FwdHamPlayerPickup( iEntity, id ) {
- if(!(is_user_alive(id)))
- return HAM_IGNORED;
- return g_Enable[ id ] ? HAM_SUPERCEDE : HAM_IGNORED
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement