AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help Once Again =/ (https://forums.alliedmods.net/showthread.php?t=61827)

Reaper2331 10-11-2007 11:11

Help Once Again =/
 
hey guys im making a plugin and in the plugin i want a MOTD to pop up

in the MOTD i want it to say
C:\Program Files\Steam\steamapps\YOUR ACCOUNT\
i want to replace the YOUR ACCOUNT with the users steam account name
and i dont know if this is possible or not?

if it is will someone do this for me?

Alka 10-11-2007 12:23

Re: Help Once Again =/
 
I don't think is possible ; more...amxmodx is server side :/

Reaper2331 10-11-2007 13:21

Re: Help Once Again =/
 
ok ,thats what i was thinking i just had to make sure =/ it sucks because poeple dont ever know where to find the demos they create. im making a plugin to do this
/record "Demo name" = records a demo with name given
/stop = stops recording the demo
/playdemo "Demo name" = plays the demo
/finddemo "Demo name" would give them the exact location in a MOTD but then i thought about AMXX being server side so i wanted to ask 1st.

YamiKaitou 10-11-2007 14:16

Re: Help Once Again =/
 
You can have the MOTD SAY whatever you want it to say

Reaper2331 10-11-2007 15:06

Re: Help Once Again =/
 
yes i know that but i want it to Replace YOUR ACCOUNT with the users Steam Account name

alien 10-11-2007 15:14

Re: Help Once Again =/
 
Show us the part of your code that handles motd.

Reaper2331 10-11-2007 15:22

Re: Help Once Again =/
 
lol thats just it i havnt created it yet, im at school i was just trying to figure out if this is Possible before i even tryed to make it

thats another reason why i need hlep, i dont know how to make a motd without having it in a .txt file

alien 10-11-2007 15:23

Re: Help Once Again =/
 
Code:
my_motd(id)   {     new authid[17];     get_user_authid(id, authid, sizeof(authid) - 1);     new message[128];     formatex(message, sizeof(message) - 1, "C:\Program Files\Steam\steamapps\%s\", authid);     show_motd(id, message, "My MOTD");     return;   }

Hope it helps. Also, remember when using #pragma ctrlchar '\', you need to replace every '\' in formatex line with '\\'.

Reaper2331 10-11-2007 15:29

Re: Help Once Again =/
 
thanks i have the /record, and /stop finished :) just not on this comp(im at school still bout to leave now...)

Alka 10-11-2007 15:35

Re: Help Once Again =/
 
What alien ?! LOL , OMG , that's the lolex't thing i have seen... Steam account name is not the steam id lol ! You'r code will print something like
this :

Code:

C:\Program Files\Steam\steamapps\STEAM_0:0:12345678\


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

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