جرب هذا
local positionTable,countTable = {
[1] = {0,0,3},
[2] = {100,0,3},
[3] = {120,0,1},
},0
addCommandHandler ( "spawn" , function ( player )
countTable = countTable + 1
if ( countTable >= #positionTable+1 ) then countTable = 0 end
spawnPlayer ( player ,positionTable[countTable][1],positionTable[countTable][2],positionTable[countTable][3],180, 46, 0, 0)
end ) ;