AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] AFK Plug-In (https://forums.alliedmods.net/showthread.php?t=295559)

DarthMan 03-29-2017 09:42

[HELP] AFK Plug-In
 
Hello. I am working on an AFK plug-in.

Code:

get_user_name(id,g_OldName,charsmax(g_OldName))
I did this, my name on the server is DarthMan. The script is supossed to change my name from [AFK]DarthMan to DarthMan if I am no longer afk, but it changes it to arthMan for an unknown reason.
Can someone help me please? Thanks !

edon1337 03-29-2017 09:55

Re: [HELP] AFK Plug-In
 
The whole thing you wrote makes no sense, like NO damn sense.

The native you provided returns player name, not change it.
You didn't provide the code.

DarthMan 03-29-2017 10:06

Re: [HELP] AFK Plug-In
 
Quote:

Originally Posted by edon1337 (Post 2507626)
The whole thing you wrote makes no sense, like NO damn sense.

The native you provided returns player name, not change it.
You didn't provide the code.

Yes I know, but I sue this to get the player name and then later change it using set_user_info(id, "name", g_OldName[id]);

edon1337 03-29-2017 11:28

Re: [HELP] AFK Plug-In
 
Quote:

Originally Posted by edon1337 (Post 2507626)
You didn't provide the code.


DarthMan 03-29-2017 14:30

Re: [HELP] AFK Plug-In
 
There's no more need to, i did it another way with a local var szPlayerID and used replace_all to get rid of the [AFK] from the player name.


All times are GMT -4. The time now is 18:01.

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