Sign in to follow this  
Boris.

[HELP] Problem with login system

Recommended Posts

Use the /stop [resourcename] command and also you have to remove the resources that you don't want at server start in the mtaserver.conf

Share this post


Link to post

You dont understand me, I want this resources, but not in this time. This is not when server turn on, this is when one player join on server.

Share this post


Link to post

You will need to edit the votemanager to check if the player is logged in before showing the voting menu.

Share this post


Link to post
1 hour ago, Mr.Loki said:

You will need to edit the votemanager to check if the player is logged in before showing the voting menu.

Aha okay. How looking this function, this if?

 

edit: aha isGuestAccount?

 

Classic problem, when player join on server, If server is empty showing vote system and changing race. Retarded. When player join every time showing vote system. Im try put if is guest account, and after this never show vote system

Edited by Boris.

Share this post


Link to post

use onPlayerJoin then setElementData(source, "Player:Loggedin", false)

in votemanager somewhere before the render, use > if no getElementData(localPlayer, "Player:Loggedin") then return end

 

Share this post


Link to post
On 7/7/2018 at 23:21, TheMOG said:

use onPlayerJoin then setElementData(source, "Player:Loggedin", false)

in votemanager somewhere before the render, use > if no getElementData(localPlayer, "Player:Loggedin") then return end

 

I dont understand...

Where I need use it? First, and second... Problem is with that, I cant find where is function for showing vote menu

When I come on server, send message curently play - map. And In this time when sever is empty, stop this map and show vote menu. How disable this stop map, and only spawn in this race? And without vote(im ask that)

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.