Raised This Month: $130 Target: $400
 32% 

Solved How to get the same player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Rajasthan, India
Old 06-13-2018 , 11:44   How to get the same player
Reply With Quote #1

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 ?
__________________
CSIndia The only Indian Scripters Community

Last edited by instinctpt1; 06-13-2018 at 13:08. Reason: solved thanks maqi, smiley
instinctpt1 is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-13-2018 , 11:59   Re: How to get the same player
Reply With Quote #2

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.
maqi is online now
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-13-2018 , 12:18   Re: How to get the same player
Reply With Quote #3

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
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Rajasthan, India
Old 06-13-2018 , 12:28   Re: How to get the same player
Reply With Quote #4

Quote:
Originally Posted by ^SmileY View Post
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
__________________
CSIndia The only Indian Scripters Community
instinctpt1 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 06-13-2018 , 13:31   Re: How to get the same player
Reply With Quote #5

If you are using amx v183 you can use
TrieSnapshotCreate to store some data
__________________
@Jailbreak API MODE 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !

@Arena Mod 90% done !


Donate for more
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
E1_531G
Senior Member
Join Date: Dec 2017
Old 06-13-2018 , 16:00   Re: How to get the same player
Reply With Quote #6

https://www.amxmodx.org/api/amxmodx/set_localinfo
and
https://www.amxmodx.org/api/amxmodx/get_localinfo
__________________
My English is A0

Last edited by E1_531G; 06-13-2018 at 16:00.
E1_531G is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-13-2018 , 17:49   Re: How to get the same player
Reply With Quote #7

I prefer cvars duo i do not need to work with strings in certain cases
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:12.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode