steam id motd lange
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
steam id motd lange
gal kas turit ar zinot kur rasti toki php koda kad motd lange zaidejui roditu jo steam id
- psychical
- Viršininkas
- Posts: 2094
- Joined: 2011 Mar 12 22:19
- Skype: tautvydas11
- Location: Linksmakalnis
- Contact:
Re: steam id motd lange
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;}
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: steam id motd lange
psychical dekui taupsychical 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
- Viršininkas
- Posts: 2094
- Joined: 2011 Mar 12 22:19
- Skype: tautvydas11
- Location: Linksmakalnis
- Contact:
Re: steam id motd lange
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);}
Source: https://forums.alliedmods.net/showpost. ... ostcount=2
Who is online
Users browsing this forum: No registered users and 9 guests