SA-MP Forums Archive
Two things - 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: Two things (/showthread.php?tid=132200)



Two things - 02manchestera - 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, 2127.0999,-90.8417,35.3203);
    case 3: SetPlayerPos(i, 2127.0999,-90.8417,35.3203);
    case 4: SetPlayerPos(i, 2127.0999,-90.8417,35.3203);
    default: print("ERROR: Undefined teleport!");
}
}
}
}
return 1;
}
The two thing im tring to do it
1) but GameTextForPlayer(playerid,"Welcome to last man standing",1500,5);
2) Make it so for 5 min every one keep spawning here and at the end everyone is sent to there gang spawn point.


Re: Two things - 02manchestera - 06.03.2010

bump