AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved How to get the same player (https://forums.alliedmods.net/showthread.php?t=308265)

instinctpt1 06-13-2018 11:44

How to get the same player
 
Ok heres the situation :

A random player gets access to MAP Change and he changes the Map

Now Map is changed

How can i show my another menu to that same player .. who changed the map ?

:- Do i have to make a separate file where i should store the player's steamid before map change and after map restart check for that id to assign the menu ?

maqi 06-13-2018 11:59

Re: How to get the same player
 
If you want to save that kind of info on map change, yes you would have to create some kind of text file, or an nvault for example.

^SmileY 06-13-2018 12:18

Re: How to get the same player
 
Create a cvar protected with steamid of target and check it at changelevel, but if you need to store it i recommend to use any file manager to do it

instinctpt1 06-13-2018 12:28

Re: How to get the same player
 
Quote:

Originally Posted by ^SmileY (Post 2596744)
Create a cvar protected with steamid of target and check it at changelevel, but if you need to store it i recommend to use any file manager to do it

Thats a cool Idea will try it :)

Natsheh 06-13-2018 13:31

Re: How to get the same player
 
If you are using amx v183 you can use
TrieSnapshotCreate to store some data

E1_531G 06-13-2018 16:00

Re: How to get the same player
 
https://www.amxmodx.org/api/amxmodx/set_localinfo
and
https://www.amxmodx.org/api/amxmodx/get_localinfo

^SmileY 06-13-2018 17:49

Re: How to get the same player
 
I prefer cvars duo i do not need to work with strings in certain cases


All times are GMT -4. The time now is 17:32.

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