Jump to content

hledám Event system v1.0


Janik22

Recommended Posts

#define MAX_EVENT_TYPES (5)

new bool: isEvent;
new eventType[MAX_EVENT_TYPES];

forward OnGoingEvent();
public OnGoingEvent() {
	if (isEvent == true) {
		switch (eventType) {
			case 0: {
					// --- Stuff ---
			}
		}
	} else {

		// --- Anti-Stuff ---
	}
	return 1;
}

Enjoy. :doge:

Edited by Scydo
typo2
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

před 17hodinami, Janik22 said:

diky za pomoc event systém úspešne dokončení 

môžete si ho vyskúšať a ohodnotiť  /eprikazy /ehelp + rcon

Eventsystem.amx 113.84 kB · 7 downloads

Tuším je v podmienkach, že zdieľané FS, GM atď musia obsahovať aj zdrojový kód. Alebo sa mýlim?

  • Líbí se mi to! (+1) 2
Link to comment
Share on other sites

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
×
×
  • Create New...