Jump to content

SS PLUGIN [REZOLVAT]


marvel_team

Recommended Posts

Nume : amx_ss sau ultimate_ss


Versiune : Nu conteaza


Descriere detaliata :


Doresc si eu un plugin pentru ss cu mesaje in romana


Doresc ca pluginu  sa faca 3poze normale + 1blind (verde)


                          #Multumesc

Link to comment
Share on other sites

De pe fostul server,REAL.RANGFORT.RO, nu are erori/buguri.

 

 

#include <amxmodx>

#include <amxmisc>

 

new gmsgFade

public plugin_init()

{

register_plugin("Ultimate SS Taker", "V 2.1", "navir")

register_concmd("amx_ss", "ScreenShot", ADMIN_KICK, "amx_ss <player>")

 

gmsgFade = get_user_msgid("ScreenFade")

}

 

new name_player[32],param,pozes,poze

 

public ScreenShot(id, level, cid)

{

if (!cmd_access(id, level, cid, 2))

return PLUGIN_HANDLED

 

new arg[32], ip_player[32]

read_argv(1, arg, 31)

 

new player = cmd_target(id, arg, 4)

 

if (!player)

return PLUGIN_HANDLED

 

get_user_name(player, name_player, 31);

get_user_ip(player, ip_player, 31, 1);

 

client_print(id, print_chat, "Nick: ^"%s^" - Ip: %s", name_player,ip_player);

 

client_print(id, print_console, "Nick: ^"%s^" - Ip: %s", name_player,ip_player);

client_print(id, print_console, "Nick: ^"%s^" - Ip: %s", name_player,ip_player);

client_print(id, print_console, "Nick: ^"%s^" - Ip: %s", name_player,ip_player);

 

pozes=5

poze=1

 

client_print(id, print_chat, "^"%s^" must give you 5 photos, one of them must be GREEN !", name_player);

 

new hostname[64], name_admin[32], timer[32];

 

get_cvar_string("hostname",hostname,63);

get_user_name(id, name_admin, 31);

get_time("%m/%d/%Y - %H:%M:%S", timer,31);

 

client_print(player, print_center, "PHOTO # %d", poze+1);

 

client_print(player, print_chat, "--------------------------------------------");

client_print(player, print_chat, "Admin: ^"%s^" made you a screenshot !", name_admin);

client_print(player, print_chat, "Nick-ul tau: ^"%s^" - Ip tau: %s", name_player, ip_player);

client_print(player, print_chat, "Data si ora: %s - Server: ^"%s^"", timer, hostname);

client_print(player, print_chat, "--------------------------------------------");

 

client_cmd(player,"snapshot");

 

poze++

param=player

set_task(1.0,"GreenShot",3322,_,_,"b");

return PLUGIN_HANDLED

}

 

public GreenShot(id, level, cid)

{

if(poze < pozes) {

 

if(poze==3) {

 

message_begin(MSG_ONE, gmsgFade, {0,0,0},param)

write_short(14<<7)

write_short(58<<6)

write_short(1<<0)

write_byte(5)

write_byte(255)

write_byte(0)

write_byte(255)

message_end()

}

 

new hostname[64], name_player[32], ip_player[32], timer[32];

new frags = get_user_frags (param)

new deaths = get_user_deaths (param)

 

get_cvar_string("hostname",hostname,63);

get_user_name(param,name_player,31);

get_user_ip(param, ip_player, 31, 1);

get_time("%m/%d/%Y - %H:%M:%S", timer,31);

 

client_print(param, print_center, "PHOTO # %d", poze+1);

 

client_print(param, print_chat, "--------------------------------------------");

client_print(param, print_chat, "Your frags: %d - Your deaths: %d",frags, deaths);

client_print(param, print_chat, "Nick-ul tau: ^"%s^" - Ip tau: %s", name_player, ip_player);

client_print(param, print_chat, "Data si ora: %s - Server: ^"%s^"", timer, hostname);

client_print(param, print_chat, "--------------------------------------------");

 

client_cmd(param,"snapshot");

poze++

 

} else {

 

client_cmd(param,"snapshot");

client_cmd(param,"kill;wait;jointeam 6");

 

get_user_name(param, name_player, 31);

 

client_print(0, print_chat, "SS was taken from ^"%s^" !", name_player);

 

client_print(param, print_chat, "%s, Ti sau facut 5 poze.Esti obligat sa le predai adminului !", name_player);

client_print(param, print_chat, "Use say_team @ and it will be seen only by admins !");

 

remove_task(3322);

 

}

 

return PLUGIN_HANDLED;

}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...