Mr. Maxilian Posted July 1, 2019 Share Posted July 1, 2019 Create a login system, faced with this problem: I need to for the player who came to run the resource with authorization. But I don't know how to do it, because my resource runs for everyone. Please help, or if you know how to make it easier - please describe. 1 Link to comment
Scripting Moderators ds1-e Posted July 1, 2019 Scripting Moderators Share Posted July 1, 2019 17 minutes ago, Mr. Maxilian said: Create a login system, faced with this problem: I need to for the player who came to run the resource with authorization. But I don't know how to do it, because my resource runs for everyone. Please help, or if you know how to make it easier - please describe. Why do you create other topic with it? I've answered you there. Link to comment
Mr. Maxilian Posted July 1, 2019 Author Share Posted July 1, 2019 9 minutes ago, majqq said: Why do you create other topic with it? I've answered you there. I have a function in the resource "onClientResourceStart" that runs everything else. Maybe you can make a check on the spawn player or something? Link to comment
Scripting Moderators ds1-e Posted July 1, 2019 Scripting Moderators Share Posted July 1, 2019 (edited) 3 minutes ago, Mr. Maxilian said: I have a function in the resource "onClientResourceStart" that runs everything else. Maybe you can make a check on the spawn player or something? You can use: triggerClientEvent, which will execute your client-side function, for certain player. https://wiki.multitheftauto.com/wiki/TriggerClientEvent Edited July 1, 2019 by majqq 1 Link to comment
Mr. Maxilian Posted July 1, 2019 Author Share Posted July 1, 2019 35 minutes ago, majqq said: You can use: triggerClientEvent, which will execute your client-side function, for certain player. https://wiki.multitheftauto.com/wiki/TriggerClientEvent Oh, Yes! Precisely! Thanks. Link to comment
Mr. Maxilian Posted July 1, 2019 Author Share Posted July 1, 2019 1 hour ago, majqq said: You can use: triggerClientEvent, which will execute your client-side function, for certain player. https://wiki.multitheftauto.com/wiki/TriggerClientEvent Can I run multiple triggers at once? How to do this? Link to comment
Scripting Moderators ds1-e Posted July 2, 2019 Scripting Moderators Share Posted July 2, 2019 (edited) 9 hours ago, Mr. Maxilian said: Can I run multiple triggers at once? How to do this? If you want execute other function at client-side, just use timer. I wouldn't use multiple triggers at once, to not harm server, but still it depends, what you're trying to do. https://wiki.multitheftauto.com/wiki/SetTimer Also, you might read this topic, and exactly IIYAMA posts, which explain a bit about triggers. Edited July 2, 2019 by majqq Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now