AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] motd (https://forums.alliedmods.net/showthread.php?t=184431)

Moshiko014 05-05-2012 08:32

[help] motd
 
PHP Code:

public ShowMotd(idplayer)
{
    new 
szSteamId[32]
    new 
szMotd[256]
    new 
szTemp[128]
    
    
get_user_authid(playerszSteamIdcharsmax(szSteamId))
    
    
add(szMotdcharsmax(szMotd), "<html>")
    
add(szMotdcharsmax(szMotd), "<body leftmargin=^"0^" topmargin=^"0^" rightmargin=^"0^" bottommargin=^"0^">")
    
    
formatex(szTempcharsmax(szTemp), "<iframe src=^"http://website.com/profile.php?server=jail&steamid=%s^" width=^"1050%^" height=^"3500%^">", szSteamId)
    
add(szMotdcharsmax(szMotd), szTemp)
    
    
add(szMotdcharsmax(szMotd), "</body>")
    
add(szMotdcharsmax(szMotd), "</html>")
    
show_motd(idszMotd"Achievements")



when i put this code. the motd shows me only this, instend the real website.

PHP Code:

<iframe src=^"http://website.com/profile.php?server=jail&steamid=%s^" width=^"1050%^" height=^"3</body></html> 


Bilal Pro 05-05-2012 08:45

Re: [help] motd
 
Dont double post.

Moshiko014 05-05-2012 08:50

Re: [help] motd
 
i dont know were to put it ....

help please?

fysiks 05-06-2012 02:06

Re: [help] motd
 
Does this work:

PHP Code:

szMotd[128]
formatex(szMotdcharsmax(szMotd), "http://website.com/profile.php?server=jail&steamid=%s"szSteamId)
show_motd(idszMotd



All times are GMT -4. The time now is 16:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.