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

PUBNite: BattleRoyale MOD - FINAL VERSION RELEASED!!!


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-20-2019 , 12:01   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [v2.2 VERSION RELEASED]
Reply With Quote #301

To be honest I tried to print the callfunc_end() value, and it printed 0 (related to Natsheh reply, it should print the return value of the boolean).
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-20-2019 at 21:46.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-21-2019 , 15:20   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [v2.2 VERSION RELEASED]
Reply With Quote #302

UPDATED TO 2.3

- Fixes

- Fixed the kevlar level that drops from the chest.
- Fixed some issues with the PUBNite_VoteMap plugin.
- Fixed the armor type after using the Chug Jug.
- Fixed an issue when the user uses the Guspe and get knocked out.
- Fixed the scores reseting after the round end restart (only visually).
- Fixed the top15 command inside the PUBNite_Main.
- Fixed some issues with some shots and vehicles could go through the wall item.
- Fixed the kevlar and helmet life check when you find another one.
- Fixed the Supply Box gravity when it lands.

- New features

- Added a sound when you change the voice channel.
- Added a code that makes the skydive sound emit from the player.
- Added an ability to let the owners create their own items. The whole API (check pubnite_mod):

PHP Code:
forward pubnite_customitem_created(iEntityIDiCustomItemID)
forward pubnite_customitem_pickedup(iPlayeriEntityIDiCustomItemID)
forward pubnite_customitem_dropped(iPlayeriCustomItemID)
forward pubnite_player_busdrop(iPlayer)
forward pubnite_player_land(iPlayer)

native pubnite_is_customitem(iCustomItemID)
native pubnite_has_customitem(idiCustomItemID)
native pubnite_get_randomitem(&iParamItemID, &iParamItemRarityszParamItemModel[MAX_MODEL_LENGTH])
native pubnite_get_customitem_num()
native pubnite_get_customitem_id(iCustomItem, &iCustomItemID)
native pubnite_get_customitem(iCustomItem, &iCustomItemIDszCustomItemName[MAX_PLAYERS])
native pubnite_register_customitem(szCustomItemName[MAX_PLAYERS], szCustomItemModel[MAX_MODEL_LENGTH], iCustomItemRarityszCustomItemFunc[MAX_PLAYERS])
native pubnite_customitemid_by_name(szCustomItemName[MAX_PLAYERS])
native pubnite_customitem_rarity_by_id(iCustomItemID
----------------------

There's a simple example of how could you register/create your own item:

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <pubnite_mod>
#include <fun>

#define PLUGIN "PUBNite: Long Jump"
#define VERSION "1.0"
#define AUTHOR "EFFx"

new const g_szPickupSound[] =    "items/gunpickup2.wav"

new bool:g_bHasLongJump[33]
new 
g_iLongJumpID

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
    
    
g_iLongJumpID pubnite_register_customitem("Long Jump""models/w_longjump.mdl"RARITY_GOLD"hasLongJump")
    if(!
g_iLongJumpID)
    {
        
set_fail_state("Couldn't create the Long Jump item, plugin disabled.!")
    }
}

public 
plugin_precache()
{
    
precache_sound(g_szPickupSound)
}

public 
hasLongJump(id, &ret)
{
    
ret g_bHasLongJump[id]
}

public 
pubnite_customitem_dropped(iPlayeriCustomItemID)
{
    if(
iCustomItemID == g_iLongJumpID)
    {    
        
set_user_gravity(iPlayer1.0)
        
g_bHasLongJump[iPlayer] = false
    
}
}

public 
pubnite_customitem_pickedup(iPlayeriEntityIDiCustomItemID)
{
    if((
iCustomItemID == g_iLongJumpID) && !g_bHasLongJump[iPlayer])
    {
        
g_bHasLongJump[iPlayer] = true
        set_user_gravity
(iPlayer0.5)
        
        
emit_sound(iPlayerCHAN_ITEMg_szPickupSoundVOL_NORMATTN_NORM0PITCH_NORM)
        
engfunc(EngFunc_RemoveEntityiEntityID)
    }
}

public 
ham_PlayerSpawn_Post(id)
{
    if(
is_user_alive(id) && g_bHasLongJump[id])
    {
        
set_user_gravity(id1.0)
        
g_bHasLongJump[id] = false
    
}

Any question, please ask.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-21-2019 at 21:53.
EFFx is offline
undead52
Senior Member
Join Date: Dec 2016
Old 04-21-2019 , 18:22   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [v2.2 VERSION RELEASED]
Reply With Quote #303

this is how it should be now.

thanks, now made Ghillie suit but item doesnt get removed when restart round still appear in bag.

also, Run time error 4: index out of bounds
[AMXX] [0] PUBNite_Main.sma::forward_EmitSound (line 2889)

Said ghillie suit but, totally grass man.

Last edited by undead52; 04-21-2019 at 19:36.
undead52 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-21-2019 , 20:33   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #304

Did you remove the item when the user respawned?

About the index out of bounds issue, download the PUBNite_Plugins again.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-22-2019 at 01:00.
EFFx is offline
undead52
Senior Member
Join Date: Dec 2016
Old 04-22-2019 , 02:41   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #305

It happens maybe because i manually restart or didn't update plugins except main plugin.

This doesn't remove it when manually restart, i never waited until normally round end btw.
PHP Code:
public ham_PlayerSpawn_Post(id)
{
    if(
is_user_alive(id) && g_bHasLongJump[id])
    {
        
set_user_gravity(id1.0)
        
g_bHasLongJump[id] = false
    
}


Last edited by undead52; 04-22-2019 at 02:43.
undead52 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-22-2019 , 08:33   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #306

Install all files correctly and at player spawn, reset user's data about the item you've created. I tested it and the item does reset here.

Edit: Fixed little issues with the main plugin. Download link updated.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-22-2019 at 21:35.
EFFx is offline
undead52
Senior Member
Join Date: Dec 2016
Old 04-23-2019 , 04:41   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #307

pubg_bot_name_t > pubnite_bot_name_t

this should be like in fakeplayers.sma, it doesnt match at cfg file
undead52 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-23-2019 , 12:43   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #308

Then you should use the same cfg file that is inside the PUBNite_Plugins file.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
undead52
Senior Member
Join Date: Dec 2016
Old 04-23-2019 , 14:13   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #309

pubg is in the sma file not in the cfg file..., in cfg it is pubnite but in sma it is pubg
undead52 is offline
google.bsk
Member
Join Date: Apr 2019
Old 04-27-2019 , 08:50   Re: PUBNITE - BattleRoyale (PUBG + FORTNITE) - [NEW VERSION RELEASED]
Reply With Quote #310

Quote:
Originally Posted by EFFx View Post


PUBNITE - BATTLEGROUND [PUBG + FORTNITE]







Plugin release: 08/11/2018
Last plugin update: 04/21/2019




- Description
This mod is a mix of PUBG + Fortnite (some sounds and features like fortnite - effects sounds, impulse grenade and more) and others features from PUBG (kill display, redzone, helmets, Kevlar and more). This mod is kinda funny too.

If people still without understanding what Battlegrounds is, lemme explain the mod basically:

Players are spawned in a bus that flys through the air, down the map, there are a few items and weapons that players can use for win the game. Players can play solo, duo, trio or squad.



GAMEPLAY VIDEO (best video ever)






- Itens list:
Code:
Kevlar (protect from bullets)
Helmet (protect from head shots)
Medkit (players can heal their health)
Impulse Grenade (It impulses the player)
Bag (players can carry more items/weapons)
Guspe (Players are teletransported to the highest point)
Chug Jug (You receive full health + full kevlar)
Wall (You can build a wall in front of you)
All items except Medkit, Impulse and Chug Jug have levels 1, 2 and 3 (more powerful).

- Necessary Includes
- CromChat = https://forums.alliedmods.net/showthread.php?t=295046
- Dhudmessage (if your amxx version is less than 1.8.3) = https://forums.alliedmods.net/showthread.php?t=149210
- Fvault = https://forums.alliedmods.net/showthread.php?t=76453

- Credits
VEN - for No Objectives = https://forums.alliedmods.net/archiv...p/t-53812.html
guipatinador - Got the top15 code from his Basic SkillPoints v2.0.2 = https://forums.alliedmods.net/showthread.php?t=191708
DruX - For grenade prediction code (I forgot the link)
Igoreso - For Hud Customizer plugin [Edited] = https://forums.alliedmods.net/showthread.php?p=680121
Jim - For round end blocker [Edited] (I forgot the link)
Cheap_Suit - For Bullet Whizz = https://forums.alliedmods.net/showthread.php?p=255370
MeRcyLeZZ - For Players models = https://forums.alliedmods.net/showthread.php?t=161255

Totopizza - For making sounds, models and helped me testing (BIG THANKS DUDE)
Kalipso22 - BETA Tester, RedZone code and Turkish translation (big thanks dude)
Th3 822 - Tested most of the 2.0 version on his server with 20+ players playing (big thanks too)

xopoIIIuu - Russian translation
Rivotril - Spanish translation
Nutu_ - Romanian translation
Godofwar - German translation

- Change LOG
Spoiler





не все компилируются sma файлы. При запуске сервера в консоли куча error ошибок. Вообще непонятно, каким образом у вас работает этот мод.

Last edited by google.bsk; 04-27-2019 at 08:54.
google.bsk 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 18:20.


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