Jump to content

[REL] Class Selection


lopezloo

Recommended Posts

Class Selection

5gS44.gif

Simple Class Selection for you deathmatch or freeroam server! You can easy customize class selection by settings in meta.xml like skins (all SA or you own list), spawns, camera etc.

== 2.0 ==

  • improvded code
  • random spawns (see spawns.xml)
  • many new settings (see config.xml and meta.xml)
  • skin search box
  • you can enable option for disable reset player weapons or jetpack

Functions (client & server):

  • setupPlayerForClassSelection()
  • stopPlayerClassSelection()
  • + "classSelection" data

(player argument on serverside of course)

Events (client):

  • onClientPlayerEnterClassSelection()
  • onClientPlayerLeaveClassSelection(skin)
  • onClientClassSelectionSkinChange(oldSkin, newSkin)

Events (server):

  • onPlayerEnterClassSelection()
  • onPlayerLeaveClassSelection(skin)

Edited by Guest
Link to comment

Thanks.

(from community)

this resource is full of bugs, when i returns to desktop and then returns to the game i see yellow screen, wtf??? and its cant fix.

It's MTA bug called by mirror, only way to fix it is change camera position in meta.xml

Link to comment

Thanks X-SHADOW.

Thanks.
(from community)

this resource is full of bugs, when i returns to desktop and then returns to the game i see yellow screen, wtf??? and its cant fix.

It's MTA bug called by mirror, only way to fix it is change camera position in meta.xml

meta.xml? you mean script.

onClientRestore

Nope, i mean camera settings in meta.xml:

<setting name="cameraPosX" value="[256.0815]" /> 
<setting name="cameraPosY" value="[-43.0475]" /> 
<setting name="cameraPosZ" value="[1004.0234]" /> 
                 
<setting name="cameraLookX" value="[258.4893]" /> 
<setting name="cameraLookY" value="[-41.4008]" /> 
<setting name="cameraLookZ" value="[1002.0234]" /> 
         
<setting name="pedPosX" value="[258.4893]" /> 
<setting name="pedPosY" value="[-41.4008]" /> 
<setting name="pedPosZ" value="[1002.0234]" /> 
                 
<setting name="pedRot" value="[270.0]" /> 
<setting name="interior" value="[14]" /> 

You can change camera to non mirror (cull in ipl) place.

Event onClientRestore? How fix it? This bug happens when player minimalize game not restore, im tested it. I can't fix it, only way is change camera in meta.xml (look up).

I have 1.7 rate on community because MTA has bug :roll:.

Link to comment

What I am saying, when you minimize you get the bug, and when you restore, you can shift the camera matrix one unit and then put the matrix back to the original. Now that I understand what you mean by meta.xml I realise that this wouldn't work

Link to comment
  • 9 months later...
  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...