Raised This Month: $51 Target: $400
 12% 

[CS:GO] Healthshot and Tagrenade (testing new csgo items)


Post New Thread Reply   
 
Thread Tools Display Modes
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 18:47   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #21

to work with multi 1v1 you need to add

public void Multi1v1_AfterPlayerSetup(int client) {
if (!IsActivePlayer(client)) {
return;
}
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 19:16   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #22

i cant made it work with 1v1 looool, can you tell me what to do franc1sco.
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 19:34   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #23

its working but its giving to all exept flag o WTF
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 19:37   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #24

i didnt mess with that funcion

if(!(GetUserFlagBits(client) & ADMFLAG_NEEDED)) return;
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 19:48   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #25

hahahha made it work with multi 1v1, do you want me to share it, the code?
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 19:50   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #26

to work with multi 1v1 you need to change


public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));

if(GetClientTeam(client) < 2) return;

to

public void Multi1v1_AfterPlayerSetup(int client) {
if (!IsActivePlayer(client)) {
return;
}

and delete that line

HookEvent("player_spawn", Event_PlayerSpawn);
penalte is offline
penalte
Member
Join Date: Jan 2016
Old 03-04-2016 , 20:20   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #27

dont forget to add

#include "include/multi1v1.inc"
#include "multi1v1/generic.sp"
penalte is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 03-05-2016 , 01:17   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #28

Great work as always Franc1sco!

Also hoping that this will work for all players eventually considering its unfair for VIPs only I think.

wolvez04 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-05-2016 , 06:00   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items)
Reply With Quote #29

@penalte

Ty

Quote:
Originally Posted by wolvez04 View Post
Great work as always Franc1sco!

Also hoping that this will work for all players eventually considering its unfair for VIPs only I think.

Done


New version 1.1
-Added cvar for control the flag needed for have the new items
Code:
sm_csgonewitems_adminflag "0" // Admin flag required to use csgonewitems. 0 = No flag needed. Can use a b c ....
-Added support for multi1v1 plugin


Code changes: https://github.com/Franc1sco/CSGO-Ne...ac44d7991ac748

Download latest version: https://github.com/Franc1sco/CSGO-Ne...ive/master.zip
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-05-2016 at 06:01.
Franc1sco is offline
Send a message via MSN to Franc1sco
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 03-06-2016 , 03:20   Re: [CS:GO] Healthshot and Tagrenade (testing new csgo items) v1.1
Reply With Quote #30

Thanks, works great!

Possible idea. A plugin that gives one or both nades to a player on each team at random, each round. Instead of every person spawning with tactical and healthshots, it could be at random and more balanced.
wolvez04 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 05:23.


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