- | Afiseaza codul
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <colorchat> #pragma tabsize 0 new bool: hascan[33]; new const TAG[] = "" public plugin_init() { register_plugin("WarGods Cerere", "1.0", "DanN"); register_clcmd ( "say", "hook_say" ); } public client_connect(id) { hascan[id] = false; } public hook_say ( id ) { new szSaid[ 192 ]; read_args( szSaid, sizeof( szSaid ) -1 ); remove_quotes( szSaid ); if( contain( szSaid, "/scan" ) != -1 ) { 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, GREEN, "%s ^x03Jucatorului ^x04[%s] ^x03 i sa cerut deja scanare wargods de catre ^x04[%s].", TAG, 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"); client_cmd(id,"snapshot;wait;wait; snapshot;") ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Adminul ^x04[%s] ^x01ii cere scanare Wargods lui : ^x04[%s]", TAG, get_name(id), szName, timer); ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Server :^x04 FURIEN.TEST.RO", TAG); ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Link download : ^x04www.wargods.ro/wcd/download.php", TAG); if(is_user_alive(player)) user_silentkill(player) cs_set_user_team(player,CS_TEAM_SPECTATOR) } else { ColorChat(id, GREEN, "%s Jucatorul specificat nu exista.", TAG); } return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } stock get_name ( id ) { new name [ 32 ] ; get_user_name ( id, name, 31 ); return name; }
Modificare plugin
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- mariusexeqt
- Utilizator neserios (tepar)
- Posts: 199
- Joined: 01 Jan 2020, 22:55
- Detinator Steam: Da
- Fond eXtream: 0
- Has thanked: 4 times
- Been thanked: 4 times
- Contact:
- eMeKa.eXe
- Utilizator neserios (tepar)
- Posts: 717
- Joined: 12 Jan 2016, 03:59
- Detinator Steam: Da
- Reputatie: Nume anterior: SkeletoN2016
Fost Membru Club eXtreamCS (2 luni) - Fond eXtream: 0
- Has thanked: 7 times
- Been thanked: 28 times
Uite
https://forums.alliedmods.net/showthread.php?t=71269
Ai aici toata lista cu flagurile acum ști care este și poți modifica și tu :)
NEXT LEVEL
-
- Membru, skill 0
- Posts: 68
- Joined: 11 Aug 2019, 16:07
- Detinator Steam: Da
- CS Status: Pe Inferno cu băieții
- Detinator server CS: FREE.LALEAGANE.RO
- SteamID: PM.
- Fond eXtream: 0
- Has thanked: 2 times
- Been thanked: 1 time
Salut.
Netestat.
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#pragma tabsize 0
new bool: hascan[33];
new const TAG[] = ""
public plugin_init() {
register_plugin("WarGods Cerere", "1.0", "DanN");
register_clcmd ( "say", "hook_say", ADMIN_BAN );
}
public client_connect(id)
{
hascan[id] = false;
}
public hook_say ( id )
{
new szSaid[ 192 ];
read_args( szSaid, sizeof( szSaid ) -1 );
remove_quotes( szSaid );
if( contain( szSaid, "/scan" ) != -1 )
{
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, GREEN, "%s ^x03Jucatorului ^x04[%s] ^x03 i sa cerut deja scanare wargods de catre ^x04[%s].", TAG, 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");
client_cmd(id,"snapshot;wait;wait; snapshot;")
ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Adminul ^x04[%s] ^x01ii cere scanare Wargods lui : ^x04[%s]", TAG, get_name(id), szName, timer);
ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Server :^x04 FURIEN.TEST.RO", TAG);
ColorChat(0, GREEN, "%s ^x01[^x04WG^x01] Link download : ^x04www.wargods.ro/wcd/download.php", TAG);
if(is_user_alive(player)) user_silentkill(player)
cs_set_user_team(player,CS_TEAM_SPECTATOR)
}
else
{
ColorChat(id, GREEN, "%s Jucatorul specificat nu exista.", TAG);
}
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
stock get_name ( id ) {
new name [ 32 ] ;
get_user_name ( id, name, 31 );
return name;
}
Last edited by levin on 20 Mar 2020, 14:31, edited 1 time in total.
Reason: nu i ok
Reason: nu i ok