Jump to content

The launch of the resource


Recommended Posts

  • Scripting Moderators
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
  • Scripting Moderators
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 by majqq
  • Thanks 1
Link to comment
  • Scripting Moderators
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 by majqq
Link to comment

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...