Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

es playerget primary and secondary #37

Open
ReQ220 opened this issue Apr 13, 2020 · 3 comments
Open

es playerget primary and secondary #37

ReQ220 opened this issue Apr 13, 2020 · 3 comments

Comments

@ReQ220
Copy link

ReQ220 commented Apr 13, 2020

Hi! I am trying to get the primary or secondary player's weapon. I'm getting errors.

block load
{
    es_xset secondary_variable 0
    es_xset primary_variable 0
}

event player_jump
{
    es playerget primary primary_variable event_var(userid)
	es playerget secondary primary_variable event_var(userid)
    es_msg server_var(primary_variable) is the primary weapon!
	es_msg server_var(secondary_variable) is the secondary weapon!
}

image

@Ayuto
Copy link
Owner

Ayuto commented Apr 13, 2020

What's the output of sp info?

@ReQ220
Copy link
Author

ReQ220 commented Apr 13, 2020

--------------------------------------------------------
Checksum      : 58e1345a0443ab64c00095c0b9860b71
Date          : 2020-04-13 08:33:14.169311
OS            : Linux-2.6.32-042stab142.1-x86_64-with-centos-7.4.1708-Core
Game          : csgo
SP version    : 695
Github commit : 92b3adfaaaf1bb9ecd2be1ddad55bc68589b4152
Server plugins:
   00: Source.Python, (C) 2012-2019, Source.Python Team.
   01: Metamod:Source 1.10.7-dev
SP plugins:
   00: es_emulator, https://github.com/Ayuto/EventScripts-Emulator
   01: wcs, 2020.03.29-2, https://forums.sourcepython.com/viewtopic.php?f=7&t=1925
--------------------------------------------------------

@NosferatuJoe
Copy link
Contributor

This might've been fixed with this #44 , please verify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants