Random Teleports At A Teleport command.
#1

Hello,

I never tryed to script something like this before.
Can someone explain me how to make a randoms cordinates on a teleport command?

Thanks (:
Reply
#2

https://sampwiki.blast.hk/wiki/Random

Instead of OnPlayerSpawn put it on a command
Reply
#3

OK, Thanks i will try it. And where i have to put this--> new Float:RandomSpawn[][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{-2796.9854, 1224.8180, 20.5429, 192.0335},
{-2454.2170, 503.8759, 30.0790, 267.2932},
{-2669.7322, -6.0874, 6.1328, 89.8853}
};
Reply
#4

3 Warnings = warning 213: tag mismatch
Reply
#5

Depends where you want to use it.

If you wanna use it globally, then outside function braces, e.g. somewhere on top of the script.
Reply
#6

I make it there on the top of the script. And i got Warning tag mismatch,
Reply
#7

Show the entire warning message and copy the respective lines.
Reply
#8

What? The message you have entered is too short.
Reply
#9

Show the entire warning message and copy the respective lines your compiler displays in here.
Reply
#10

Show the function where you used RandomSpawn.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)