User
Pass
2FA
 
 

Putin ajutor in scripting :D

 
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) -> Resources
Author Message2765
BlueLA-COLT

[Mentally Stable]



Status: Offline
(since 28-06-2010 16:50)
Joined: 18 Jul 2009
Posts: 18, Topics: 4
Location: Romania

Reputation: 161.8
Votes: 4

Post Posted: 09-11-2009, 23:40:40 | Translate post to: ... (Click for more languages)

am facut pluginu asta pt poze

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "HeLL Screenshot"
#define VERSION "1.0"
#define AUTHOR "Blue"


public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_concmd("hell_poze","admin_ss",ADMIN_KICK,"<nick> Aceasta comanda ii face 1 POZA jucatorului!");
}


public admin_ss(id,level,cid)
{
   if(!cmd_access(id,level,cid,2))
   return PLUGIN_HANDLED;
   
   new argument[32], adminname[32]
   read_argv(1,argument,31)
   
   new player = cmd_target(id,argument,31)
   new hostname[64], tname[32], usrip[32], timer[32];
   get_cvar_string("hostname",hostname,63);
   get_user_name(player,tname,31);
   get_user_name(id, adminname, 31);
   get_user_ip(player,usrip,31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);
   
   if(!player)
   return PLUGIN_HANDLED;
   
   client_print(player, print_chat, "* Adminul: %s ti-a facut o poza !",adminname)
   client_print(player, print_chat, "* Nick-ul tau: %s, IP-ul tau: %s",tname,usrip)
   client_print(player, print_chat, "* Data si ora: %s - pe serverul %s",timer,hostname)
   client_cmd(player,"snapshot")
   console_print(id, "[LA-COLT] AI FACUT O POZA LUI  %s  !",tname)

   log_amx("[LA-COLT] %s a facut POZA lui %s",adminname,tname)
   
   return PLUGIN_HANDLED
}



imi poate arata cnv ce si unde sa adaug ...pt ca in momentul cand un admin face o poza uni jucator sa arate la toti admini ca Adminul Cutarescu Ia Facut o poza lui Playeru` XXX


Rog sa ma ajutati nu cred ca e greu dar nus cum se face -

0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 10-11-2009, 00:05:06 | Translate post to: ... (Click for more languages)

Code:
public admin_print(message)
{
    new players[32],iNum,i
    get_players(players,iNum)
    for(i=0;i<iNum;i++)
        if(is_user_admin(players[i]))
            client_print(players[i],chat_print,message)
}


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
BlueLA-COLT

[Mentally Stable]



Status: Offline
(since 28-06-2010 16:50)
Joined: 18 Jul 2009
Posts: 18, Topics: 4
Location: Romania

Reputation: 161.8
Votes: 4

Post Posted: 14-11-2009, 18:47:42 | Translate post to: ... (Click for more languages)

si unde pun asta?

am puso si nu apare ...

0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 14-11-2009, 19:14:41 | Translate post to: ... (Click for more languages)

Pai o pui la sfarsit. Si in admin_ss, la sfarsit, adica dupa log_amx("[LA-COLT] %s a facut POZA lui %s",adminname,tname) scrii
Code:
new string[256]
format(string,255,"[LA-COLT],"%s a facut POZA lui %s",adminname,tname);
admin_print(string);


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
BlueLA-COLT

[Mentally Stable]



Status: Offline
(since 28-06-2010 16:50)
Joined: 18 Jul 2009
Posts: 18, Topics: 4
Location: Romania

Reputation: 161.8
Votes: 4

Post Posted: 15-11-2009, 00:34:16 | Translate post to: ... (Click for more languages)

ms mult stiam ca aici pot gasi raspuns la orice -
0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 16-11-2009, 11:45:08 | Translate post to: ... (Click for more languages)

Cu placere

Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
BlueLA-COLT

[Mentally Stable]



Status: Offline
(since 28-06-2010 16:50)
Joined: 18 Jul 2009
Posts: 18, Topics: 4
Location: Romania

Reputation: 161.8
Votes: 4

Post Posted: 18-11-2009, 20:55:02 | Translate post to: ... (Click for more languages)

nu merge imi da o sumedenie de erori


0 0
  
Back to top
View user's profile Send private message
ScaRba

[Mentally Stable]



Status: Offline
(since 26-11-2009 18:58)
Joined: 03 May 2007
Posts: 21, Topics: 1
Location: Romania

Reputation: 134.5
Votes: 4

Post Posted: 19-11-2009, 02:36:39 | Translate post to: ... (Click for more languages)

client_print(0, print_chat, "* Adminul: %s ,a facut o poza lui %s !",adminname,tname)


100% functional o pui inainte de linia:
client_cmd(player,"snapshot")



Last edited by ScaRba on 19-11-2009, 19:24:04; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 19-11-2009, 11:18:50 | Translate post to: ... (Click for more languages)

Scarba, citeste tot inainte sa postezi
BlueLA-COLT wrote:
sa arate la toti admini ca Adminul Cutarescu Ia Facut o poza lui Playeru` XXX


@BlueLA-COLT, scrie aici erorile


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
ScaRba

[Mentally Stable]



Status: Offline
(since 26-11-2009 18:58)
Joined: 03 May 2007
Posts: 21, Topics: 1
Location: Romania

Reputation: 134.5
Votes: 4

Post Posted: 19-11-2009, 19:23:26 | Translate post to: ... (Click for more languages)

mda , sry , aia e pentru toti jucatorii - in orice caz , ca sa arate doar la admini poti incerca asta

server_cmd("hell_chat Adminul: %s ,a facut un screenshot lui %s !",adminname,tname)

o pui inainte de linia:
client_cmd(player,"snapshot")

0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 20-11-2009, 10:04:52 | Translate post to: ... (Click for more languages)

Scarba, i-am dat eu codul pentru admini. Uite-te mai sus putin.

Attitude - A little thing that makes a BIG difference
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) -> Resources  


The time now is 12-12-2024, 13:44:00
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