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

Help Scripting Please!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cristianronaldo
Member
Join Date: Sep 2015
Old 07-17-2016 , 13:59   Help Scripting Please!!
Reply With Quote #1

I'm doing a plugin for that to send a message to the server when you kill roshan, and the message tells the team to kill him, whether good or bad, but dont work.Somebody can help me? @psychonic !!!!
This is the code


Code:
#include <sourcemod>

public Plugin:myinfo = 
{
    name = "New Plugin",
    author = "cristianronaldo",
    description = "<- Description ->",
    version = "1.0",
    url = "<- URL ->"
}

public OnPluginStart()
{
    HookEvent("dota_roshan_kill", Roshan);
}
public void Roshan(Event event, const char[] name, bool dontBroadcast)
{

    
    int team = event.GetInt("teamnumber ");

    
 


    int attacker = team;
    
 
    PrintToChatAll(
        "Roshan has killed by %s",attacker);
}

Last edited by cristianronaldo; 07-17-2016 at 14:08.
cristianronaldo is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-17-2016 , 14:31   Re: Help Scripting Please!!
Reply With Quote #2

I didn't think SourceMod worked on DOTA2 since its shift to Source 2...
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
cristianronaldo
Member
Join Date: Sep 2015
Old 07-17-2016 , 15:17   Re: Help Scripting Please!!
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
I didn't think SourceMod worked on DOTA2 since its shift to Source 2...
I need this for source 1,version 1434.Thanks
cristianronaldo 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 12:08.


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