Objects
#1

Hey guys in my event system i have many maps and iam using Y_ini how i make if the event start it load the objects and when the event end it remove the objects
Reply
#2

Any help?
Reply
#3

Are you that impatient that you bump your topic after just 9 minutes?
Read the rules that are on top of every section of this website..
http://forum.sa-mp.com/announcement.php?f=12
Reply
#4

Iam sorry, But i need it
Reply
#5

I NEED IT ANY HELP?
Reply
#6

No one can help?
Reply
#7

No, read the rules man, and learn to script... Seriously, you provide NO code, and this is the simplest request ever.

Quote:

You make 2 functions, (E.g. StartEvent, and EndEvent) one of which places the objects, another that removes those objects. You then call the first one when the event starts, you call the second when the event finishes.

At the top of the script you can use
Код:
new EventObject[20];
to make an array to track the objects

When creating the objects you use
Код:
EventObject[X]=CreateObject(bladebla)
with X starting at 0, and going through to 19.

Then when you remove them you use
Код:
DestroyObject(EventObject[X]);
where X will be each one you had.

You can do both of these in for loops. The second will be simple to do as a for loop, the first will take some work and reading.

This is scripting help, not script for you. Provide some code next time.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)