amx_ss

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
nuodas159
Flooderis arba specialistas
Posts: 522
Joined: 2010 Sep 03 15:30
Skype: nuodas159
Location: SunCity

amx_ss

Post by nuodas159 »

Kodėl nepasidaro sreen šhotai?

Code: Select all

 new cHostName, msgSayTextnew szLogFile[56] public plugin_init(){    register_dictionary("screen_message.txt")        cHostName = get_cvar_pointer("hostname")     register_concmd("amx_ss", "cmdSS", ADMIN_BAN, "<name or #userid> - Make screenshot on user!")     msgSayText = get_user_msgid("SayText")    get_time("screens_%Y%m.log", szLogFile, charsmax(szLogFile))} public cmdSS(id,level,cid){    if(!cmd_access(id, level, cid, 1))        return PLUGIN_HANDLED     new target[32]    read_argv(1, target, 31)    new player = cmd_target(id, target, CMDTARGET_OBEY_IMMUNITY)     if(!player)        return PLUGIN_HANDLED     new name[32], timer[32], hostname[64], name2[32], ip[32], authid2[32], country[33], site[64], ip2[32], authid[32]     get_user_name(id, name, 31)    get_user_name(player, name2, 31)    get_user_authid(player, authid2, 31)    get_user_ip(player, ip, 31, 1)     get_user_authid(id, authid, 31)    get_user_ip(id, ip2, 31, 1)     geoip_country(ip, country)    get_time("%d/%m/%Y - %H:%M:%S", timer, 63)    get_pcvar_string(cHostName, hostname, charsmax(hostname))     client_printc(player,"%L", player, "SS_MSG2", timer, hostname)    client_printc(player,"%L", player, "SS_MSG3", name2, ip, authid2, country)     set_hudmessage(150, 0, 255, -1.0, 0.1, 0, 0.25, 1.0, 0.0, 0.0, 4)    show_hudmessage(player, "%L", player, "SS_MSG_HUD", timer, hostname, name2, ip, authid2, country, site)     client_cmd(player, "cancelselect; screenshot; wait; toggleconsole; alias; wait; screenshot; wait; toggleconsole; cancelselect;")    log_to_file(szLogFile, "Administratorius %s (%s) <%s> panaudojo SCREENSHOT komanda ant zaidejo %s (%s) <%s>!", name, ip2, authid, name2, ip, authid2)     return PLUGIN_HANDLED} stock client_printc(const id, const string[], {Float, Sql, Resul,_}:...) {     new msg[191], players[32], count = 1    vformat(msg, sizeof msg - 1, string, 3)     replace_all(msg,190,"!g","^4")    replace_all(msg,190,"!y","^1")    replace_all(msg,190,"!t","^3")     if(id)        players[0] = id    else        get_players(players,count,"ch")     for (new i = 0 ; i < count ; i++)    {        if (is_user_connected(players[i]))        {            message_begin(MSG_ONE_UNRELIABLE, msgSayText,_, players[i])            write_byte(players[i])            write_string(msg)            message_end()        }    }}
Image

User avatar
aaarnas
Vyr. diskusijų administratorius
Posts: 3891
Joined: 2010 Aug 31 13:21
Skype: fiarno
Contact:

Re: amx_ss

Post by aaarnas »

Patikrink ar randa player.
Palikau CS pasaulį ;/ . Nebepasiekiamas.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests