Skip to content

es playerget primary and secondary #37

Description

@ReQ220

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions