Stock zamienia SteamID na Steam Community ID , na alliedzie twierdzono iż jest to nie możliwe z powodu ograniczeń AMXX lecz ten gość to obszedł
Ja tylko wyciągnąłem funkcje z pluginu i "zrobiłem" z nich Include
Przykład użycia:
#include <amxmodx>
#include <steamcomid>
new const gNazwaPluginu[] = "Moje Steam Community ID";
new const gWersjaPluginu[] = "0.1";
new const gAutorPluginu[] = "MisieQ";
public plugin_init()
{
register_plugin(gNazwaPluginu, gWersjaPluginu, gAutorPluginu);
register_clcmd("say /moje","PokazSteamCommunity")
}
public PokazSteamCommunity(id)
{
new szAuthID[36], szCommunityID[64],szURL[256]
get_user_authid(id,szAuthID,sizeof szAuthID - 1)
if(GetFriendID(szAuthID,szCommunityID,sizeof szCommunityID - 1))
{
formatex(szURL,sizeof szURL - 1,"<html><body><iframe width=^"100%%^" height=^"100%%^" frameborder=^"0^" scrolling=^"yes^" src=^"http://steamcommunit...",szCommunityID)
show_motd(id,szURL)
}
else
{
client_print(id,print_chat,"Niepoprawne StaemID! Sprawdz czy nie grasz na serwerze LAN'owym czy tez na Non-Steam")
}
return PLUGIN_HANDLED
}