Random teleport
#5

pawn Код:
//under your command:

new RandomTP = Random(3);//Defines the variable into how many randoms(case)
switch(RandomTP)//tells server to make the next lot of case's to be selected at random
{//opens a new level (needs to be indented)
case 0: SetPlayerPos(playerid,600.1861, -984.6816, 8.5846);// starts at case 0 because thats how it reads it 0 - infinity
case 1: SetPlayerPos(playerid,466.4644, 484.0000, 5.000);
case 2: SetPlayerPos(playerid,846.5465, 687.6843, 7.5416);
}// closes a level (needs to be indented)
//thats it
Reply


Messages In This Thread
Random teleport - by martyz-lithuania - 09.10.2009, 13:51
Re: Random teleport - by Imran.Abbas - 09.10.2009, 13:53
Re: Random teleport - by martyz-lithuania - 09.10.2009, 14:26
Re: Random teleport - by Correlli - 09.10.2009, 14:31
Re: Random teleport - by pagie1111 - 09.10.2009, 14:33
Re: Random teleport - by martyz-lithuania - 09.10.2009, 14:44
Re: Random teleport - by Correlli - 09.10.2009, 14:45
Re: Random teleport - by Nero_3D - 09.10.2009, 14:49
Re: Random teleport - by martyz-lithuania - 09.10.2009, 14:52
Re: Random teleport - by martyz-lithuania - 09.10.2009, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)