AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] VIP M249 + HE + Flash Bombs (https://forums.alliedmods.net/showthread.php?t=331834)

SHIFT0 04-09-2021 09:10

[HELP] VIP M249 + HE + Flash Bombs
 
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)



nG_getwreck 04-09-2021 10:09

Re: [HELP] VIP M249 + HE + Flash Bombs
 
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/

nG_getwreck 04-09-2021 10:18

Re: [HELP] VIP M249 + HE + Flash Bombs
 
Make "~" to "!"

SHIFT0 04-09-2021 10:20

Re: [HELP] VIP M249 + HE + Flash Bombs
 
ok i'll try it stay here bro <3

SHIFT0 04-09-2021 10:21

Re: [HELP] VIP M249 + HE + Flash Bombs
 
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).

nG_getwreck 04-09-2021 10:26

Re: [HELP] VIP M249 + HE + Flash Bombs
 
1 Attachment(s)
Quote:

Originally Posted by SHIFT0 (Post 2743543)
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

SHIFT0 04-09-2021 10:28

Re: [HELP] VIP M249 + HE + Flash Bombs
 
1 Warnings
Done.

<3 Ty

SHIFT0 04-09-2021 10:29

Re: [HELP] VIP M249 + HE + Flash Bombs
 
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 04-09-2021 10:32

Re: [HELP] VIP M249 + HE + Flash Bombs
 
i want this HE + Flash with other models bro
If u can

nG_getwreck 04-09-2021 10:44

Re: [HELP] VIP M249 + HE + Flash Bombs
 
I can't help you with that. You can search those resources by yourself, btw my friend Mr. Google is willing to help you.


All times are GMT -4. The time now is 19:55.

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