random spawn
#1

well i know how to make random teleport but how can i make random spawn, when you spawn you get on a random place?
Reply
#2

Look at the script LVDM that comes with the scripting package it has one included.
Reply
#3

make under OnPlayerSpawn:

pawn Код:
new randspawm=random(5);
switch(randspawn)
{
case 0:SetPlayerPos(playerid, X1, Y1, Z1);
case 1:SetPlayerPos(playerid, X2, Y2, Z2);
case 2:SetPlayerPos(playerid, X3, Y3, Z3);
case 3:SetPlayerPos(playerid, X4, Y4, Z4);
case 4:SetPlayerPos(playerid, X5, Y5, Z5);
case 5:SetPlayerPos(playerid, X6, Y6, Z6);
case 6:SetPlayerPos(playerid, X7, Y7, Z7);
}
Cheers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)