01.12.2008, 07:19
i need help for this...when the player type /teleport the player to teleport to random places...
new pteleports[0][4] = {
{x1, y1, z1},
{X2, y2, z2},
{X3, y3, z3}
}; (AND SO ON) depending on how many coordinates you want.
command(teleport, playerid, params[])
{
new teleports = random(sizeof(pteleports));
SetPlayerPos(playerid, teleports[rand][0], teleports[rand][1], teleports[rand][3]);
return 1;
}