g,round
#6

Код:
forward Event();
public Event()
{
    switch(random(1)) //could be removed if <= 1
{
    case 0:
{
    for(new i; i < MAX_PLAYERS; i++)
{
    switch(random(5)) //random(5) returns a number from 0 till 4 (0, 1, 2, 3 or 4)
{
    case 0: SetPlayerPos(i, -2188.7241,-238.9776,36.5220);
    case 1: SetPlayerPos(i, -2145.9573,-138.9276,36.5228);
    case 2: SetPlayerPos(i, 2128.0999,-90.8417,35.3203);
    case 3: SetPlayerPos(i, 2129.0999,-90.8417,35.3203);
    case 4: SetPlayerPos(i, 2126.0999,-90.8417,35.3203);
    default: print("ERROR: Undefined teleport!");
}
}
}
}
return 1;
}
that is the right thing

SetTimer("Event", 300000, true);

that should be under OnGameMdeoInit and it doesnt need brackets
________
Toys Webcam
Reply


Messages In This Thread
g,round - by 02manchestera - 06.03.2010, 23:17
Re: g,round - by aircombat - 06.03.2010, 23:32
Re: g,round - by 02manchestera - 06.03.2010, 23:33
Re: g,round - by aircombat - 06.03.2010, 23:34
Re: g,round - by 02manchestera - 06.03.2010, 23:43
Re: g,round - by aircombat - 06.03.2010, 23:49
Re: g,round - by 02manchestera - 06.03.2010, 23:52
Re: g,round - by aircombat - 06.03.2010, 23:58

Forum Jump:


Users browsing this thread: 1 Guest(s)