Raised This Month: $32 Target: $400
 8% 

[HELP] VIP M249 + HE + Flash Bombs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 09:10   [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #1

Help Guys.
D:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\inclu de\zombie_escape.inc(2) : fatal error 100: cannot read from file: "reapi"
PHP Code:
#include <zombie_escape>
 
public plugin_init()
{
    
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS""1.0""Null")
}
 
public 
ze_user_humanized(id)
{
    
// Not Admin? Exit the function...
    
if (~get_user_flags(id) & ADMIN_LEVEL_H)
        return
   
    
set_task(0.1"Give_M249"id)
}
 
public 
Give_M249(id)
{
    
// Give M249
    
rg_give_item(id"weapon_m249"GT_APPEND)
    
rg_set_user_bpammo(idWeaponIdType:get_weaponid("weapon_m249"), 200)
   
    
// Give x2 Fire Nades
    
rg_give_item(id"weapon_hegrenade"GT_APPEND)
    
rg_set_user_bpammo(idWeaponIdType:get_weaponid("weapon_hegrenade"), rg_get_user_bpammo(idWeaponIdType:get_weaponid("weapon_hegrenade")) + 1)
   
    
// Give x2 Frost Nades
    
rg_give_item(id"weapon_flashbang"GT_APPEND)
    
rg_set_user_bpammo(idWeaponIdType:get_weaponid("weapon_flashbang"), rg_get_user_bpammo(idWeaponIdType:get_weaponid("weapon_flashbang")) + 1)

SHIFT0 is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-09-2021 , 10:09   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #2

Use this instead, no need to use ReAPI:
PHP Code:
#include <zombie_escape>
 
public plugin_init()
{
    
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS""1.0""Null")
}
 
public 
ze_user_humanized(id)
{
    
// Not Admin? Exit the function...
    
if (!get_user_flags(id) & ADMIN_LEVEL_H)
        return
   
    
set_task(0.1"Give_M249"id)
}
 
public 
Give_M249(id)
{
    
// Give M249
    
give_item(id"weapon_m249")
    
cs_set_user_bpammo(idCSW_M249200)
   
    
// Give x2 Fire Nades
    
give_item(id"weapon_hegrenade")
    
cs_set_user_bpammo(idCSW_HEGRENADE2)
   
    
// Give x2 Frost Nades
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG2

ReAPI: https://dev-cs.ru/resources/73/
__________________

Last edited by nG_getwreck; 04-09-2021 at 10:27. Reason: Replaced "~" with "!"
nG_getwreck is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-09-2021 , 10:18   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #3

Make "~" to "!"
__________________
nG_getwreck is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 10:20   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #4

ok i'll try it stay here bro <3
SHIFT0 is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 10:21   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #5

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "register_plugin" on line 5
Error: Undefined symbol "get_user_flags" on line 11
Error: Undefined symbol "set_task" on line 14
Error: Undefined symbol "give_item" on line 20
Error: Undefined symbol "cs_set_user_bpammo" on line 21
Warning: Expression has no effect on line 21
Error: Expected token: ";", but found ")" on line 21
Error: Invalid expression, assumed zero on line 21
Error: Too many error messages on one line on line 21

Compilation aborted.
8 Errors.
Could not locate output file D:\Program Files (x86)\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
SHIFT0 is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-09-2021 , 10:26   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #6

Quote:
Originally Posted by SHIFT0 View Post
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "register_plugin" on line 5
Error: Undefined symbol "get_user_flags" on line 11
Error: Undefined symbol "set_task" on line 14
Error: Undefined symbol "give_item" on line 20
Error: Undefined symbol "cs_set_user_bpammo" on line 21
Warning: Expression has no effect on line 21
Error: Expected token: ";", but found ")" on line 21
Error: Invalid expression, assumed zero on line 21
Error: Too many error messages on one line on line 21

Compilation aborted.
8 Errors.
Could not locate output file D:\Program Files (x86)\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
Ooops my bad, here try this one:

Edit: Why you're using amxmodx 1.8.2? ZE mod isn't compatible with that.
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <zombie_escape>
 
public plugin_init()
{
    
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS""1.0""Null")
}
 
public 
ze_user_humanized(id)
{
    
// Not Admin? Exit the function...
    
if (!get_user_flags(id) & ADMIN_LEVEL_H)
        return
   
    
set_task(0.1"Give_M249"id)
}
 
public 
Give_M249(id)
{
    
// Give M249
    
give_item(id"weapon_m249")
    
cs_set_user_bpammo(idCSW_M249200)
   
    
// Give x2 Fire Nades
    
give_item(id"weapon_hegrenade")
    
cs_set_user_bpammo(idCSW_HEGRENADE2)
   
    
// Give x2 Frost Nades
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG2

Use this compiler below
Attached Files
File Type: zip Version 1.6 Compiler.zip (819.3 KB, 34 views)
__________________

Last edited by nG_getwreck; 04-09-2021 at 10:30.
nG_getwreck is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 10:28   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #7

1 Warnings
Done.

<3 Ty
SHIFT0 is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 10:29   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #8

add my on discord bro
I want u
https://discord.gg/ppaBzK3r
Null
Bro i want the vip m249 with model if u can
SHIFT0 is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-09-2021 , 10:32   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #9

i want this HE + Flash with other models bro
If u can
SHIFT0 is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-09-2021 , 10:44   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #10

I can't help you with that. You can search those resources by yourself, btw my friend Mr. Google is willing to help you.
__________________

Last edited by nG_getwreck; 04-09-2021 at 10:45.
nG_getwreck is offline
Reply


Thread Tools
Display Modes

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 01:52.


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