steam id motd lange

Forumas skirtas klausimams/pamokoms susijusioms su PHP, SQL (MySQL), web technologijomis, HTML, CSS, javascript, turinio valdymo sistemomis ir kita.
Post Reply
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

steam id motd lange

Post by laimiukas3 »

gal kas turit ar zinot kur rasti toki php koda kad motd lange zaidejui roditu jo steam id
Image
Image
Image

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: steam id motd lange

Post by psychical »

Code: Select all

#include <amxmodx>  public plugin_init() { register_clcmd("say /info", "cmdInfoPlayers"); }  public cmdInfoPlayers(id) {     new motd[4048], len     len = formatex(motd, 4047, "<html><style>body{background:#bdbcbc;font-family:verdana,tahoma,arial;}</style>");    len += formatex(motd[len], 4047, "<body><table width=70%% border=0 align=center cellpadding=0 cellspacing=0>");    len += formatex(motd[len], 4047, "<tr><td>Jūsų steam ID: %s</td></tr>", get_user_authid_ex(id));    len += formatex(motd[len], 4047, "</table></body></html>");    show_motd(id , motd, "Info");        return PLUGIN_CONTINUE  } stock get_user_authid_ex(id){    new szAuthid[33];    get_user_authid(id, szAuthid, 32);        return szAuthid;}

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: steam id motd lange

Post by laimiukas3 »

psychical wrote:

Code: Select all

#include <amxmodx>  public plugin_init() { register_clcmd("say /info", "cmdInfoPlayers"); }  public cmdInfoPlayers(id) {     new motd[4048], len     len = formatex(motd, 4047, "<html><style>body{background:#bdbcbc;font-family:verdana,tahoma,arial;}</style>");    len += formatex(motd[len], 4047, "<body><table width=70%% border=0 align=center cellpadding=0 cellspacing=0>");    len += formatex(motd[len], 4047, "<tr><td>Jūsų steam ID: %s</td></tr>", get_user_authid_ex(id));    len += formatex(motd[len], 4047, "</table></body></html>");    show_motd(id , motd, "Info");        return PLUGIN_CONTINUE  } stock get_user_authid_ex(id){    new szAuthid[33];    get_user_authid(id, szAuthid, 32);        return szAuthid;}
psychical dekui tau :) as pats rades sita. turiu galvoj be jokiu komandu ar yra toks php kodas kad i pagrindini motd txt be jokio plugin :) connect isoka motd langas ir tavo steam id rodo radau internete bet nevienas varijantas nevikia :/
Image
Image
Image

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: steam id motd lange

Post by psychical »

Code: Select all

#include <amxmodx>#include <cstrike> #define MOTD_TASK 13579 public plugin_init() {    register_plugin("Connect MOTD", "1.0", "You");} public client_putinserver ( index ){    if(is_user_bot(index) || is_user_hltv(index)) {        return PLUGIN_HANDLED    }     set_task(1.5, "show_motd_file", index+MOTD_TASK, _, _, "b");} public show_motd_file ( index ){    index - MOTD_TASK    if(cs_get_user_team(index) != CS_TEAM_UNASSIGNED)    {        new motd[4048], len        len = formatex(motd[len], 4047, "Jūsų STEAM ID: %s", get_user_authid_ex(id));        show_motd(id, motd, "Jusu STEAM ID");         remove_task(index+MOTD_TASK)    }    return PLUGIN_HANDLED;} public player_disconnect(index) {    remove_task(index + MOTD_TASK);}
O jeigu šitaip?

Source: https://forums.alliedmods.net/showpost. ... ostcount=2

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests