PDA

View Full Version : Plugin Wargods



UNiQUE
08-04-2020, 05:10 PM
Hi Wargods'staff i just download it ur plugin in my server and plugin work, but is all in Romanian how i can translate in English and when i ask someone scan he go spec automaticly and if he left ban automaticly please need help GL HF:)

lAsuStarl
08-04-2020, 05:40 PM
Post here the .sma file, so i can make a language file.

UNiQUE
08-04-2020, 06:23 PM
<b>You have to register to ba able to see this link</b> here bro tx for ur fast answer, and please tell me how i can do when i ask them scan they go automaticly spec

~th3fla~
08-04-2020, 06:59 PM
/* WarGods Community
Plugin by: LiOn
Credits: DanN
Plugin: Comanda cerere wCD
*/

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Cerere wCD"
#define VERSION "1.0"
#define AUTHOR "DanN / LiOn"
#define ACCESS ADMIN_KICK

new bool: hascan[33]

new const PREFIX[] = "[WarGods]"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say", "hook_say")
register_clcmd ( "say /infowcd", "motdinfowcd")
register_clcmd ( "say_team /infowcd", "motdinfowcd")
register_clcmd ( "say infowcd" , "motdinfowcd")
register_clcmd ( "say_team infowcd" , "motdinfowcd")
}

public client_connect(id)
{
hascan[id] = false
}

public hook_say (id)
{
new flags=get_user_flags(id)
new szSaid[ 192 ]
read_args( szSaid, sizeof( szSaid ) -1 )
remove_quotes( szSaid )
if( contain( szSaid, "/scan" ) != -1 )
{
if(flags & ADMIN_KICK)
{
new target[ 32 ]
copy( target, sizeof( target ) -1, szSaid[ 6 ] )
new player = cmd_target( id, target, 2 )
if(hascan[player])
{
static szName[ 32 ]
get_user_name( player, szName, sizeof( szName ) -1 )

ColorChat( id, "!v[%s]: !ePlayer !v[%s] !ehas already been asked to !vscan wCD !nby !v[%s].", PREFIX, szName, get_name(id))
return PLUGIN_HANDLED
}
if( player )
{
static szName[ 32 ]
new timer[ 32 ]
get_user_name( player, szName, sizeof( szName ) -1 )
get_time("%d/%m/%Y - %H:%M:%S", timer,31)
hascan[player] = true
client_cmd(player, "snapshot")
server_cmd("amx_spec %s" ,szName)
ColorChat(0, "!v[%s]: !eAdmin !v[%s] !erequest a wCD scan for !v[%s]. Data/Hour: !v%s", PREFIX, get_name(id), szName, timer)
ColorChat(0, "!v[%s]: !eDownload Link: !v<b>You have to register to ba able to see this link</b>", PREFIX)
ColorChat(0, "!v[%s]: !eIf you don't know how to scan, write in chat !v/infowcd", PREFIX)
}
else
{
ColorChat(id, "!v[%s]: !eThe specified player does not exist.", PREFIX)
}
}
}
return PLUGIN_HANDLED
}

public motdinfowcd(id)
{
show_motd(id, "addons/amxmodx/configs/wcdinfo.html")
}

stock get_name ( id )
{
new name [ 32 ]
get_user_name ( id, name, 31 )
return name
}

//ColorChat

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

replace_all( msg, 190, "!v", "^4" ) //- verde
replace_all( msg, 190, "!g", "^1" ) //- galben
replace_all( msg, 190, "!e", "^3" ) //- echipa
replace_all( msg, 190, "!n", "^0" ) //- normal

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( )
}
}
}
}

UNiQUE
08-04-2020, 07:08 PM
the3fla u can give me the link when i can download the new sma file en english please

~th3fla~
08-04-2020, 07:10 PM
<b>You have to register to ba able to see this link</b>

UNiQUE
08-04-2020, 07:18 PM
i try it but still he is in romanian Language

~th3fla~
08-04-2020, 07:27 PM
Check if you have installed the plugin properly, the plugin is in English.


and please tell me how i can do when i ask them scan they go automaticly spec

Try this: <b>You have to register to ba able to see this link</b>

You need to compile plugin and paste it in addons/amxmodx/plugins

Here is .amxx plugin: <b>You have to register to ba able to see this link</b>

Paste it in addons/amxmodx/plugins

UNiQUE
08-04-2020, 07:33 PM
u can add me in steam or i add u, this plugin i dont understand i put in Scripiting files because he is a sma not amxx

~th3fla~
08-04-2020, 07:37 PM
Bot... Put this <b>You have to register to ba able to see this link</b> in addons/amxmodx/plugins not in scripting.

UNiQUE
08-04-2020, 07:50 PM
yeah work bro tx so much just /infowcd dont work btw i can edit to call /howscan is more simple

~th3fla~
08-04-2020, 08:25 PM
Try this: <b>You have to register to ba able to see this link</b>

If /howscan doesn't work, download this: <b>You have to register to ba able to see this link</b>

And copy the .html file in addons/amxmodx/configs

UNiQUE
08-04-2020, 08:59 PM
i try but still dont work /howscan and /infowcd

~th3fla~
08-04-2020, 09:02 PM
Have you downloaded wcdinfo.html? You put it in addons/amxmodx/configs?

UNiQUE
08-04-2020, 09:09 PM
yeah i put yesterday he work in romanian and now in english no why ?

lAsuStarl
08-04-2020, 09:13 PM
I don't think the html file was translated, i will make an update for this plugin to be multi language, but only for the plugin, the html file will be translated by user.

UNiQUE
08-04-2020, 09:32 PM
the plugin is alerady in english is good just need /howscan

--------------- Added after 28 minutes ---------------

i dont understand i ask 1 player a scan he go spec and he left is not banned is normal? also he can join ct or teror?

~TraNda~
08-04-2020, 10:01 PM
Try this: <b>You have to register to ba able to see this link</b>
Btw, make sure the wcdinfo.html file is in addons / amxmodx / configs
Download the file provided by me and put it in addons / amxmodx / plugins

UNiQUE
08-04-2020, 10:12 PM
still not working ..

~TraNda~
08-04-2020, 11:23 PM
still not working ..

Change map and try again

UNiQUE
09-04-2020, 12:01 AM
i did it bro still not work joker can i have ur steam i add u in steam we talk?

UNiQUE
09-04-2020, 04:54 PM
guys u can help me ?

lAsuStarl
09-04-2020, 05:38 PM
<b>You have to register to ba able to see this link</b>(wg-wargods) Try the plugin from the last post. If it doesn't work, deactivate all your plugin's and let only this one, and try

UNiQUE
09-04-2020, 06:40 PM
missing the download link i cant found here watch it

lAsuStarl
09-04-2020, 08:45 PM
It is there all the code you need in spoiler tag, copy all the text into notepad and save it as .sma file

UNiQUE
13-04-2020, 11:43 AM
Please someone can help me ? when i ask scan a Player he go spec but he still can join Ct Or ts and leave without BAN please help ..

~TraNda~
14-04-2020, 06:33 PM
You have to give him the ban if he refuses the scan.
If you want a player to be unable to choose / change their team, use Team Join Management (click (<b>You have to register to ba able to see this link</b>)).
The plugin (Asu's) only gives the player ban if he leaves the server, not if he gets into a team. I don't think it's hard for you to watch a player see that he moves from spec to team and give him ban!

UNiQUE
14-04-2020, 07:05 PM
same if he leave he dont got banned ..

~TraNda~
14-04-2020, 07:37 PM
Oh, excuse me, I had misunderstood.
Well, for this problem I think it should be contacted lAsuStarl.

lAsuStarl
14-04-2020, 09:13 PM
I don't know if you have hlds or rehlds, the plugin was made on hlds, and it works, more than that, is not our problem.

UNiQUE
14-04-2020, 11:10 PM
give me again the link to download the plugin please:)

NimeniAltu'
12-06-2020, 11:48 PM
cine imi da si mie pluginul acesta va rog??
multumesc

Legendarniy prodavec
27-07-2022, 11:19 AM
Hi! Can you give me new download link pls? Cause previous dont work! THX

Tiger
29-07-2022, 10:20 PM
Hello, you have the source code here: <b>You have to register to ba able to see this link</b>(wg-wargods)?p=254354&viewfull=1#post254354