User
Pass
2FA
 
 

Modificare Plugin

 
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 Message853
Buzdugan Dinu

[Mentally Stable]



Status: Offline
(since 18-09-2011 11:40)
Joined: 06 Sep 2011
Posts: 4, Topics: 2
Location: Sighetu Marmatiei

Reputation: 47.5
Votes: 2

Post Posted: 06-09-2011, 21:41:26 | Translate post to: ... (Click for more languages)

Buna...

Sunt nou pe aici si dupa cate am vazut,nu-mi vine sa cred ca aveti tot ce imi trebuie mie,desi pe alte Site-uri/Forum-uri nu am Gasit,deci sunt Uimit.

Imi puteti scoate si mie imunitatea de la acest plugin :

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

new player
new ip[32]
new finish;

new maxscreens  //nr maxim de poze facute unui player
new screeninterval  //intervalul (din cate in cate) secunde i se face poza (tip float)
new design  //sa apara ca ia fost facuta o poza lui cutarica in mai multe feluri
new site //siteul/forumul unde sa posteze pozele
public plugin_init()
{
   register_plugin("Ultimate SS", "1.2", "Mitzu")
   
   register_concmd("amx_ss", "concmd_screen", ADMIN_LEVEL_A, "<authid, nick or #userid> <screens>")
   register_clcmd("say /ip", "show_ip")
   
   maxscreens = register_cvar("amx_ss_max", "5")
   screeninterval = register_cvar("amx_ss_interval", "1.0")
   design = register_cvar("amx_ss_design", "3")
   site = register_cvar("amx_ss_site","SG-Community.Forumz.Ro")
}

public concmd_screen(id, level, cid)
{
   if(!cmd_access(id, level, cid, 3))   //daca ala care face poze nu este admin sa apara U dont have acces to this cmd
   {
      return PLUGIN_HANDLED
   }
   
   new arg1[24], arg2[4]
   read_argv(1, arg1, 23)
   read_argv(2, arg2, 3)
   
   new screens = str_to_num(arg2)
   new maxss = get_pcvar_num(maxscreens)
   
   if(screens > maxss)   //prea multe poze check
   {
      console_print(id, "Prea multe poze!")
      
      return PLUGIN_HANDLED
   }
   
   player = cmd_target(id, arg1, 1)
   if (!player)   //a iesit playerul/nici nu a existat
   {
      return PLUGIN_HANDLED
   }
   finish = screens
   
   new Float:interval = get_pcvar_float(screeninterval)   //pentru fiecare poza din nr de poze "amx_ss nickname nr_de_poze" punem set_task la interval
   new array[2]
   array[0] = id //salvam datele intrun vector ca sa le folosim la ss_propriuzis
   array[1] = player
   set_task(interval, "ss_propriuzis", 0, array,2, "a", screens)
       
   return PLUGIN_HANDLED
}
 
public ss_propriuzis(array[2])
{
   //luam datele din vector si le punem corespunzator
   new player = array[1]
   new id = array[0]
   
   //luam timpul,numele adminului,numele playerului ptr simtul estetic si ca sa nu ne dea playerul alte poze
   new timestamp[32], timestampmsg[128], name[32], adminname[32]
   get_time("%m/%d/%Y - %H:%M:%S", timestamp, 31)
   get_user_name(player, name, 31)
   get_user_name(id, adminname, 31)
   get_user_ip(player, ip, 31)
          
   //Clasic Design
   if(get_pcvar_num(design) == 0)
   {
      client_print(player, print_chat, "Poza facuta Jucatorului ^"%s^" de Adminul ^"%s^"", name, adminname)
      client_cmd(player, "snapshot") //ss
   }
   //Doar Playerului
   else if(get_pcvar_num(design) == 1)
   {
      client_print(player, print_chat, "Poza facuta Jucatorului ^"%s^" de Adminul ^"%s^" (%s)", name, adminname, timestamp)
      client_cmd(player, "snapshot") //ss
   }
   //HUD Message doar Playerului
   else if(get_pcvar_num(design) == 2)
   {
      set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
      format(timestampmsg, 127, "ORA: - %s", timestamp)
      show_hudmessage(player, timestampmsg)
      
      client_cmd(player, "snapshot")  //ss
   }
   //Full
   else if(get_pcvar_num(design) == 3)
   {
      //HUD Timestamp Message
      set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
      format(timestampmsg, 127, "PLAYER %s DATA/ORA: - %s",name,timestamp)
      show_hudmessage(player, timestampmsg)
      
      client_print(0, print_chat, "Poza facuta Jucatorului ^"%s^" de Adminul ^"%s^" (%s)", name, adminname, timestamp)
      
      client_cmd(player, "snapshot") //ss
   }
   console_print(id, "IP-UL LUI: %s este %s!",name,ip)
   console_print(id, "IP-UL LUI: %s este %s!",name,ip)
   console_print(id, "IP-UL LUI: %s este %s!",name,ip)
   finish = finish - 1;
   
   if(finish == 0)
   {
      client_cmd(player, "kill")
      cs_set_user_team(player,CS_TEAM_SPECTATOR);
      new forum[51];
      get_pcvar_string(site,forum,50)
      client_print(player, print_chat, "Pozele la Y!M : [email protected]", forum)
   }
   
   return PLUGIN_CONTINUE;
}

public show_ip(id)
{
   console_print(id, "Last Stored IP: %s!",ip)
}



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

[prin vacante]



Status: Offline
(since 10-12-2018 10:49)
Joined: 30 Jan 2008
Posts: 7503, Topics: 333
Location: Romania

Reputation: 1770.2
Votes: 191

 
Post Posted: 07-09-2011, 00:45:35 | Translate post to: ... (Click for more languages)

Inlocuieste
player = cmd_target(id, arg1, 1)
cu
player = cmd_target(id, arg1, 0)



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Buzdugan Dinu

[Mentally Stable]



Status: Offline
(since 18-09-2011 11:40)
Joined: 06 Sep 2011
Posts: 4, Topics: 2
Location: Sighetu Marmatiei

Reputation: 47.5
Votes: 2

Post Posted: 08-09-2011, 11:16:30 | Translate post to: ... (Click for more languages)

Multumesc!

T.C.



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

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by ion.mzk, 08 September 2011 10:44



 
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 23-08-2025, 01:40:28
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password