SA-MP Forums Archive
g,round - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: g,round (/showthread.php?tid=132257)



g,round - 02manchestera - 06.03.2010

SetTimer("Event", gRoundTime, 300000);

Does the 300000 what i changed from 0 work so the round lasts for 5 min should this work


Re: g,round - aircombat - 06.03.2010

timer format :
SetTimer("timer", time in milliseconds, true);
________
Ferrari f1/86


Re: g,round - 02manchestera - 06.03.2010

we this work within a timer already


Re: g,round - aircombat - 06.03.2010

here is the right one :
SetTimer("Event", 300000, true);
________
Cooking Discussion


Re: g,round - 02manchestera - 06.03.2010

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(1660) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
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!");
}
    SetTimer("Event", 300000, true);
}
}
}
}
}



Re: g,round - aircombat - 06.03.2010

Код:
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


Re: g,round - 02manchestera - 06.03.2010

i have that already but it only spawns the players there once i want it to spawn player at the random spawnoint again and again for 5 mins


Re: g,round - aircombat - 06.03.2010

idk how to do that but u can try making this :

case 0: SetPlayerPos(i, -2188.7241,-238.9776,36.5220);
case 1: SetPlayerPos(i, -2145.9573,-138.9276,36.522;
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);
//repeat same coordinates
case 5: SetPlayerPos(i, -2188.7241,-238.9776,36.5220);
case 6: SetPlayerPos(i, -2145.9573,-138.9276,36.522;
case 7: SetPlayerPos(i, 2128.0999,-90.8417,35.3203);
case 8: SetPlayerPos(i, 2129.0999,-90.8417,35.3203);
case 9: SetPlayerPos(i, 2126.0999,-90.8417,35.3203);
________
blonde girl Webcams