16.02.2009, 17:45
Okay for now I got 7 teleports, and I know I'm not such a great scripter, I just can't find the right place to place the teleport command and such.Could I get some help writing the whole code?
I got this atm:
Plus I want the GivePlayerWeapon command on the teleport command, dunno where to place that neither.
I got this atm:
pawn Код:
new RandomSpawn = random(7);
if (RandomSpawn == 0)
{
SetPlayerPos(playerid,1314.9265,1274.5889,10.8203);
}
if (RandomSpawn == 1)
{
SetPlayerPos(playerid,2593.3086,2825.2039,27.8203);
}
if (RandomSpawn == 2)
{
SetPlayerPos(playerid,2689.9150,2790.7878,59.0212);
}
if (RandomSpawn == 3)
{
SetPlayerPos(playerid,2725.5459,2682.5300,59.0234);
}
if (RandomSpawn == 4)
{
SetPlayerPos(playerid,2605.4829,2714.0332,25.8222);
}
if (RandomSpawn == 5)
{
SetPlayerPos(playerid,2693.7769,2696.0540,22.9472);
}
if (RandomSpawn == 6)
{
SetPlayerPos(playerid,2505.3228,2687.8430,74.8281);
}
if (RandomSpawn == 7)
{
SetPlayerPos(playerid,2631.9949,2835.0886,94.0156);
}