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

Solved request help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cosminvl
Member
Join Date: Mar 2013
Location: Romania
Old 02-28-2019 , 14:08   request help
Reply With Quote #1

can anyone help me to copiler this plugin for respawn
PHP Code:
#include < amxmodx >
#include < cstrike >
#include < csdm >

public plugin_init ()
{
    
register_plugin ("CSDM Change Team" "1" "CoSmiN")

      
register_clcmd ("say /spec" "cmdSpec")
      
register_clcmd ("say_team /spec" "cmdSpec")
      
register_clcmd ("say /cs" "cmdCs")
      
register_clcmd ("say_team /cs" "cmdCs")
    
register_clcmd ("say /ct" "ct")
       
register_clcmd ("say_team /ct" "ct")
        
register_clcmd ("say /t" "t")
        
register_clcmd ("say_team /t" "t")
 
}

public 
plugin_modules ()
{
      
require_module ("CSTRIKE")
      
require_module ("CSDM")
}

public 
cmdSpec (x)
{
    new 
name[32]
    
get_user_name(xname31)

      
cs_set_user_team (CS_TEAM_SPECTATOR)
      
user_silentkill (x)

    
chat_color0"!t[AMXX] !nJucatorul !g%s !ns-a mutat la SPECTATORI"name )
}

public 
cmdCs (x)
{
    new 
name[32]
    
get_user_name(xname31)

      
cs_set_user_team (random_num (12))
      
csdm_respawn (x)

    
chat_color0"!t[AMXX] !nJucatorul !g%s !ns-a mutat la joc"name )
}

public 
ct(id)
{
    new 
name[32]
    
get_user_name(idname31)

    
cs_set_user_team(id CS_TEAM_CT)
    
user_silentkill (id)

    
chat_color0"!t[AMXX] !nJucatorul !g%s !ns-a mutat la CT"name )
}

public 
t(id)
{
    new 
name[32]
    
get_user_name(idname31)

        
cs_set_user_team(id,CS_TEAM_T)
        
user_silentkill (id)

    
chat_color0"!t[AMXX] !nJucatorul !g%s !ns-a mutat la echipa T"name )
}

stock chat_color(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[320]
    
vformat(msg190input3)

    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!n""^1")
    
replace_all(msg190"!t""^3")
    
replace_all(msg190"!t2""^0")

    if (
idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i])
                
write_string(msg)
                
message_end()
            }
        }
    }

Thanks
__________________



Last edited by cosminvl; 02-28-2019 at 16:15.
cosminvl is offline
Send a message via Yahoo to cosminvl
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-28-2019 , 14:16   Re: request help
Reply With Quote #2

Why? What's the problem with it? Explain and use proper titles for your threads.
__________________

Last edited by OciXCrom; 02-28-2019 at 14:16.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
cosminvl
Member
Join Date: Mar 2013
Location: Romania
Old 02-28-2019 , 15:27   Re: request help
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Why? What's the problem with it? Explain and use proper titles for your threads.
have this error
PHP Code:
/tmp/textROOzl4.sma(3) : fatal error 100cannot read from file"csdm" 
when i try to copiler
__________________


cosminvl is offline
Send a message via Yahoo to cosminvl
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-28-2019 , 15:59   Re: request help
Reply With Quote #4

https://amxx-bg.info/inc/ - download csdm.inc and put in in your scripting/include folder.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
R4Z8R
New Member
Join Date: Feb 2019
Old 02-28-2019 , 16:03   Re: request help
Reply With Quote #5

I compiled without any problem ...

Code:
#include < amxmodx > 
#include < cstrike > 
#include < csdm > 

public plugin_init () 
{ 
	register_plugin ("CSDM Change Team" , "1" , "CoSmiN") 

	register_clcmd ("say /spec" , "cmdSpec") 
	register_clcmd ("say_team /spec" , "cmdSpec") 
	register_clcmd ("say /cs" , "cmdCs") 
	register_clcmd ("say_team /cs" , "cmdCs") 
	register_clcmd ("say /ct" , "ct") 
	register_clcmd ("say_team /ct" , "ct") 
	register_clcmd ("say /t" , "t") 
	register_clcmd ("say_team /t" , "t") 
} 

public plugin_modules () 
{ 
	require_module ("CSTRIKE") 
	require_module ("CSDM") 
} 

public cmdSpec (x) 
{ 
	new name[32] 
	get_user_name(x, name, 31) 

	cs_set_user_team (x , CS_TEAM_SPECTATOR) 
	user_silentkill (x) 

	chat_color( 0, "!t[AMXX] !nJucatorul !g%s !ns-a mutat la SPECTATORI", name ) 
}

public cmdCs (x) 
{ 
	new name[32] 
	get_user_name(x, name, 31) 

	cs_set_user_team (x , random_num (1, 2)) 
	csdm_respawn (x) 

	chat_color( 0, "!t[AMXX] !nJucatorul !g%s !ns-a mutat la joc", name ) 
}

public ct(id) 
{ 
	new name[32] 
	get_user_name(id, name, 31) 

	cs_set_user_team(id , CS_TEAM_CT) 
	user_silentkill (id) 

	chat_color( 0, "!t[AMXX] !nJucatorul !g%s !ns-a mutat la CT", name ) 
}

public t(id) 
{ 
	new name[32] 
	get_user_name(id, name, 31) 

	cs_set_user_team(id,CS_TEAM_T) 
	user_silentkill (id) 

	chat_color( 0, "!t[AMXX] !nJucatorul !g%s !ns-a mutat la echipa T", name ) 
}

stock chat_color(const id, const input[], any:...) 
{ 
	new count = 1, players[32] 
	static msg[320] 
	vformat(msg, 190, input, 3) 

	replace_all(msg, 190, "!g", "^4") 
	replace_all(msg, 190, "!n", "^1") 
	replace_all(msg, 190, "!t", "^3") 
	replace_all(msg, 190, "!t2", "^0") 

	if (id) players[0] = id; else get_players(players, count, "ch") 
	{ 
		for (new i = 0; i < count; i++) 
		{ 
			if (is_user_connected(players[i])) 
			{ 
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) 
				write_byte(players[i]) 
				write_string(msg) 
				message_end() 
			} 
		} 
	} 
}
Attached Files
File Type: inc csdm.inc (8.1 KB, 34 views)
File Type: amxx CSDMChangeTeam.amxx (2.3 KB, 52 views)
R4Z8R is offline
cosminvl
Member
Join Date: Mar 2013
Location: Romania
Old 02-28-2019 , 16:15   Re: request help
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
https://amxx-bg.info/inc/ - download csdm.inc and put in in your scripting/include folder.
Thank you Ocixcrom it`s work
__________________


cosminvl is offline
Send a message via Yahoo to cosminvl
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 02-28-2019 , 16:22   Re: request help
Reply With Quote #7

Quote:
Originally Posted by R4Z8R View Post
I compiled without any problem ...

Code:

You should never post a .amxx file, it's against the rules.
Moody92 is offline
Mr Misw
Member
Join Date: Aug 2018
Location: India
Old 03-01-2019 , 03:09   Re: request help
Reply With Quote #8

Quote:
Originally Posted by cosminvl View Post
register_plugin ("CSDM Change Team" , "1" , "CoSmiN")
When You Can code a Plugin !! Then Why the hell You Cant compile ?
__________________
Facebook ==> Here
ScrewedUP's Website :
Main Website
My Ranking System [Skin Version] :
ScrewedUP Ranking System
My Ranking System [Without Skin Version] :
ScrewedUP Ranking System
Mr Misw 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 03:02.


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