Raised This Month: $120 Target: $400
 30% 

csgo plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benmassey
Junior Member
Join Date: Dec 2018
Old 12-08-2018 , 11:31   csgo plugin help
Reply With Quote #1

so i need a plugin
when i write !sa
its will send a massage to chat
wellcome to my server with diffrent color's

and every 120 sec it will send massage to chat
wellcome to my server have fun (with colors)

any help? someone can guide me?
benmassey is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Location: de_alliedmods
Old 12-08-2018 , 11:48   Re: csgo plugin help
Reply With Quote #2

you don't need to create 2 thread's... but here:

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegConsoleCmd("sm_sa"CMD_sa"Welcome message");
    
    
HookEvent("round_start"Hook_roundstart);
}

public 
Action CMD_sa(int clientint args)
{
    
PrintToChat(client" \x05 Welcome to my Server \x01 GL&HF");
}

public 
Action Hook_roundstart(Event event, const char[] namebool dontBroadcast)
{
    
CreateTimer(120.0welcome_timerTIMER_REPEAT);
}

public 
Action welcome_timer(Handle timer)
{
    
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!");

iskenderkebab33 is offline
benmassey
Junior Member
Join Date: Dec 2018
Old 12-08-2018 , 12:14   Re: csgo plugin help
Reply With Quote #3

Quote:
Originally Posted by iskenderkebab33 View Post
you don't need to create 2 thread's... but here:

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegConsoleCmd("sm_sa"CMD_sa"Welcome message");
    
    
HookEvent("round_start"Hook_roundstart);
}

public 
Action CMD_sa(int clientint args)
{
    
PrintToChat(client" \x05 Welcome to my Server \x01 GL&HF");
}

public 
Action Hook_roundstart(Event event, const char[] namebool dontBroadcast)
{
    
CreateTimer(120.0welcome_timerTIMER_REPEAT);
}

public 
Action welcome_timer(Handle timer)
{
    
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!");

tnx bro
but i cant compile it maybe you know why

thats my error log


//// adver.sp
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(4) : warning 207: unknown #pragma
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(4) : error 038: extra characters on line
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(6) : error 001: expected token: ";", but found "-identifier-"
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(13) : error 021: symbol already defined: "Action"
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(13) : error 010: invalid function or declaration
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(1 : error 021: symbol already defined: "Action"
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(1 : error 017: undefined symbol "event"
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(1 : error 029: invalid expression, assumed zero
// C:\server's\csgo\csgo\addons\sourcemod\script ing\adver.sp(1 : fatal error 127: too many error messages on one line
//
// Compilation aborted.
// 8 Errors.
//
// Compilation Time: 0.77 sec
benmassey is offline
Cruze
Senior Member
Join Date: May 2017
Old 12-08-2018 , 12:47   Re: csgo plugin help
Reply With Quote #4

use new sourcemod files to compile.
__________________
Github | Steam
Looking to work for some CSGO community!
Cruze is online now
iskenderkebab33
Senior Member
Join Date: Jun 2018
Location: de_alliedmods
Old 12-08-2018 , 12:58   Re: csgo plugin help
Reply With Quote #5

you can also use

https://spider.limetech.io/

or

https://www.sourcemod.net/compiler.php
iskenderkebab33 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Lazytown
Old 12-08-2018 , 13:39   Re: csgo plugin help
Reply With Quote #6

Quote:
Originally Posted by iskenderkebab33 View Post
Just spider, the compiler that sourcemod.net has is out of date by a large margin.
__________________
I sometimes do commissions. [ADD ME]
Drixevel is offline
benmassey
Junior Member
Join Date: Dec 2018
Old 12-08-2018 , 14:11   Re: csgo plugin help
Reply With Quote #7

Quote:
Originally Posted by iskenderkebab33 View Post

tnx bro

can you tell me how do i change the color?
benmassey is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Location: de_alliedmods
Old 12-08-2018 , 15:08   Re: csgo plugin help
Reply With Quote #8

Quote:
Originally Posted by benmassey View Post
tnx bro

can you tell me how do i change the color?
just change the numbers: \x05 Welcome to my Server \x01 have fun!

01, 02, 03, 04, 05, 06, 07

Link: https://forums.alliedmods.net/showpo...49&postcount=8
iskenderkebab33 is offline
Reply


Thread Tools
Display Modes

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 13:09.


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