Raised This Month: $ Target: $400
 0% 

[Multi1v1] Drug - Custom Round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 03-05-2016 , 11:47   [Multi1v1] Drug - Custom Round
Reply With Quote #1

Hello, I need to make custom round with drug
PHP Code:
#include <sourcemod>
#include <smlib>
#include "include/multi1v1.inc"
#include "multi1v1/version.sp"

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
    
name "CS:GO Multi1v1: drug round addon",
    
author "me",
    
description "drug round",
    
version PLUGIN_VERSION,
    
url "https://github.com/splewis/csgo-multi-1v1"
};

public 
void Multi1v1_OnRoundTypesAdded() {
    
Multi1v1_AddRoundType("Drug""drug"DrugHandlertruefalse""true);
}

public 
void DrugHandler(int client) {
    
Client_SetArmor(client100);
    
GivePlayerItem(client"weapon_knife");
    
drug(client);

But drug(client); it's not working, how can i do this?
CamerDisco is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 03-05-2016 , 12:25   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #2

Well, drug(client) is pointing to a function called "drug" which isn't in your plugin
headline is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 03-05-2016 , 14:02   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #3

Can u make me this function?
CamerDisco is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 03-05-2016 , 15:49   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #4

Quote:
Originally Posted by CamerDisco View Post
Can u make me this function?
PHP Code:
#include <sourcemod>
#include <smlib>
#include "include/multi1v1.inc"
#include "multi1v1/version.sp"

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
    
name "CS:GO Multi1v1: drug round addon",
    
author "me",
    
description "drug round",
    
version PLUGIN_VERSION,
    
url "https://github.com/splewis/csgo-multi-1v1"
};

public 
void Multi1v1_OnRoundTypesAdded() {
    
Multi1v1_AddRoundType("Drug""drug"DrugHandlertruefalse""true);
}

public 
void DrugHandler(int client) {
    
Client_SetArmor(client100);
    
GivePlayerItem(client"weapon_knife");
    
    
ServerCommand("sm_drug  #%i"GetClientUserId(client));

__________________
Want to check my plugins ?

Last edited by Arkarr; 03-06-2016 at 09:21.
Arkarr is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 03-06-2016 , 07:32   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #5

It's not working, drug doesn't work
CamerDisco is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 03-06-2016 , 09:22   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #6

Quote:
Originally Posted by CamerDisco View Post
It's not working, drug doesn't work
I forgot a '#' try again.
__________________
Want to check my plugins ?
Arkarr is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 03-06-2016 , 15:27   Re: [Multi1v1] Drug - Custom Round
Reply With Quote #7

Thanks a lot Man!
CamerDisco 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 02:07.


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