User
Pass
2FA
 
 

[REZOLVAT] amx_ss
Go to page 1, 2  Next    
 
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 Message4007
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 16-07-2017, 11:50:59 | Translate post to: ... (Click for more languages)

»Nume*: amx_ss
»Descriere problema*: Imi umple error log-urile .
»Poze/Sma:

ErrorLog
Code:
L 07/16/2017 - 11:23:09: [CSTRIKE] Invalid player 28
L 07/16/2017 - 11:23:09: [AMXX] Displaying debug trace (plugin "amx_ss.amxx", version "1.2")
L 07/16/2017 - 11:23:09: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 07/16/2017 - 11:23:09: [AMXX]    [0] amx_ss.sma::ss_propriuzis (line 120)



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

new player
new ip[32]
new finish;

new maxscreens  //max nr of ss to a player
new screeninterval  //interval between 2 ss
new design  //visual stuff
new site  //the site/forum where a user can post ther pics to be unbanned

public plugin_init()
{
   register_plugin("Ultimate SS", "1.2", "Hack")
   
   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", "10")
   screeninterval = register_cvar("amx_ss_interval", "1.0")
   design = register_cvar("amx_ss_design", "3")
   site = register_cvar("amx_ss_site","www.europacs.ro/forum")
}

public concmd_screen(id, level, cid)
{
   if(!cmd_access(id, level, cid, 3))   //if the one who requests an ss isnt admin exit
   {
      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)   //too many ss?
   {
      console_print(id, "[SS]Prea multe poze!")
     
      return PLUGIN_HANDLED
   }
   
   player = cmd_target(id, arg1, 1)
   if (!player)   //the player has exited the sv or he didnt existed
   {
      return PLUGIN_HANDLED
   }
   finish = screens
   
   new Float:interval = get_pcvar_float(screeninterval)   //a set_task for each "amx_ss nickname nr_of_ss"
   new array[2]
   array[0] = id //save usefull data in a vector so it can be reused
   array[1] = player
   set_task(interval, "ss_propriuzis", 0, array,2, "a", screens)
       
   return PLUGIN_HANDLED
}
 
public ss_propriuzis(array[2])
{
   //take data and set them accordingly
   new player = array[1]
   new id = array[0]
   
   //save time,adminname,playername so that the player cant give us other ss's and because it LOOKS COOOL!
   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)
         
   if (is_user_connected(id))
   {
   //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, "** TIME: - %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 TIME: - %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, "[SS]%s 's ip is %s!",name,ip)
   console_print(id, "[SS]%s 's ip is %s!",name,ip)
   console_print(id, "[SS]%s 's ip is %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, "Posteaza pozele pe %s sectiunea Fr.EuropaCs.Ro , pentru unban", forum)
   }
   }
   
   return PLUGIN_CONTINUE;
}

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

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

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 16-07-2017, 13:13:34 | Translate post to: ... (Click for more languages)

Spoiler:



Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 18-07-2017, 11:28:03 | Translate post to: ... (Click for more languages)

Eroare la compilare.

amx_ss.sma(125) : warning 209: function "ss_propriuzis" should return a value
amx_ss.sma(127) : error 010: invalid function or declaration

Am incercat si local si la fel .

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

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 18-07-2017, 20:13:47 | Translate post to: ... (Click for more languages)

Era o acolada pusa gresit in plugin .
Code:

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

new player
new ip[32]
new finish;

new maxscreens //max nr of ss to a player
new screeninterval //interval between 2 ss
new design //visual stuff
new site //the site/forum where a user can post ther pics to be unbanned

public plugin_init()
{
register_plugin("Ultimate SS", "1.2", "Hack")

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", "10")
screeninterval = register_cvar("amx_ss_interval", "1.0")
design = register_cvar("amx_ss_design", "3")
site = register_cvar("amx_ss_site","www.europacs.ro/forum")
}

public concmd_screen(id, level, cid)
{
if(!cmd_access(id, level, cid, 3)) //if the one who requests an ss isnt admin exit
{
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) //too many ss?
{
console_print(id, "[SS]Prea multe poze!")

return PLUGIN_HANDLED
}

player = cmd_target(id, arg1, 1)
if (!player || !is_user_connected(player)) //the player has exited the sv or he didnt existed
{
return PLUGIN_HANDLED
}
finish = screens

new Float:interval = get_pcvar_float(screeninterval) //a set_task for each "amx_ss nickname nr_of_ss"
new array[2]
array[0] = id //save usefull data in a vector so it can be reused
array[1] = player
set_task(interval, "ss_propriuzis", 0, array,2, "a", screens)

return PLUGIN_HANDLED
}

public ss_propriuzis(array[2])
{
//take data and set them accordingly
new player = array[1]
new id = array[0]
if(!is_user_connected(player) || !is_user_connected(id))
return PLUGIN_HANDLED;

//save time,adminname,playername so that the player cant give us other ss's and because it LOOKS COOOL!
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, "** TIME: - %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 TIME: - %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, "[SS]%s 's ip is %s!",name,ip)
console_print(id, "[SS]%s 's ip is %s!",name,ip)
console_print(id, "[SS]%s 's ip is %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, "Posteaza pozele pe %s sectiunea Fr.EuropaCs.Ro , pentru unban", forum)
}

return PLUGIN_CONTINUE;
}

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




Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 21-07-2017, 12:06:12 | Translate post to: ... (Click for more languages)

Dupa ce face pozele nu ma baga spec. Adica in TAB sunt spec, dar raman tot in echipa care eram, pot juca in continuare ,.
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 21-07-2017, 14:36:22 | Translate post to: ... (Click for more languages)

Mai bine incearca alt plugin
Spoiler:
Eu zic ca e mai ok.


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 21-07-2017, 22:04:28 | Translate post to: ... (Click for more languages)

Sa zicem ca este ok. Dar puteti sa faceti ca jucatorul sa fie bagat la spec. ?
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 21-07-2017, 22:13:58 | Translate post to: ... (Click for more languages)

Pai nu-l baga la spec? E testat ca-l baga.

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 21-07-2017, 22:23:09 | Translate post to: ... (Click for more languages)

Nu, nu il baga .

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

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 21-07-2017, 23:08:51 | Translate post to: ... (Click for more languages)

Ce client de counter-stike ai, respectiv are.

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 22-07-2017, 10:13:11 | Translate post to: ... (Click for more languages)

Ce treaba are ma frate clientul ? Pluginul nu este scriptat pentru asa ceva. Ce legatura are pluginul cu kit-ul ?? Daca cineva foloseste cine stie ce kit-uri inseamna ca nu pot folosi comenzi pe el ?
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 22-07-2017, 10:16:34 | Translate post to: ... (Click for more languages)

Am zis faza asta pentru ca mi s-a intamplat cand testam un amx_ss sa nu-l bage la spectator ( nVIDIA E9 ) pentru ca pluginu ala se bazeaza pe jointeam 6 .
Check: EDIT :
Spoiler:


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 22-07-2017, 10:41:34 | Translate post to: ... (Click for more languages)

Tot nu ma baga spec .
0 0
  
Back to top
View user's profile Send private message
-P!C@-

[Simply Normal]



Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086, Topics: 1601
Location: Constanta

Reputation: 1870.3
Votes: 781

Post Posted: 24-07-2017, 20:13:26 | Translate post to: ... (Click for more languages)

UIte aici: http://www66.zippyshare.com/v/uKGRlpEP/file.html
E sma, trebuie compilat ca sa mearga.(amxx)




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

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 25-07-2017, 16:50:47 | Translate post to: ... (Click for more languages)

-P!C@-, l-am testatpe un server classic, deoarece nu primeste kill. Daca l-as baga pe serverul furien (unde am nevoie), nu ar functiona deoarece sunt scoase comenzile jointeam.
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 GoreSpintecatoru., 27 July 2017 19:46



 
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  
Go to page 1, 2  Next    


The time now is 17-01-2025, 09:36:26
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