User
Pass
2FA
 
 

Plugin WG

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message582
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 01-02-2019, 09:07:16 | Translate post to: ... (Click for more languages)

Salut , am pluginul pentru cerere wg automat prin comanda .
As vrea sa fie adaugat la el cand scrie comanda /scan nume pe langa ca ii scrie mesajul acela ,
adminului ce a dat comanda sa i se faca un ss automat la consola / chat ca sa aibe dovada si playerul sa fie adaugat la spec
Multumesc !

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>

new bool: hascan[33];
new const TAG[] = "[CS]"

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");
         ColorChat(0, GREEN, "%s ^x03 Jucatorul ^x04[%s] ^x03ii cere scanare Wargods lui ^x04[%s]. Data/Ora: ^x03 %s", TAG, get_name(id), szName, timer);
         ColorChat(0, GREEN, "%s ^x03 Adminul va face poza la consola pentru dovada ! Nu da-ti ban fara dovada !!!", TAG);
         ColorChat(0, GREEN, "%s ^x03 Link download ^x04www.wargods.ro/wcd/download.php", TAG);
            
      }
      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;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 20-04-2024, 04:32:14
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x