I've been coding this gamemode for ages, and I still cannot get team 2 to spawn where info_player_terrorist spawns.
Team 1 spawns fine in info_player_counterterrorist
PLEASE UPDATE THREAD TITLE TO: "Error with gamemode"
Also, does anyone know a way to store tables in SQLite?
I still cannot get the spawnpoints to work correctly.
Okay, here is how you store tables in sqlite:
[lua]
require('glon');
local tbl = { "Cheese", "Dogs", "Fries", "Bongs", 5, 7, 3, true, false };
player:SetPData( "Example", glon.encode(tbl) );
[/lua]
spawnpoints(assuming):
[lua]
local spawnpoints = {};
function GenerateSpawnpointPositions()
for _,e in pairs(ents.GetAll()) do
if ( string.lower(ent:GetClass()) == "info_player_terrorist" ) then
table.insert(spawnpoints, e:GetPos() );
end
end
end
PrintTable(spawnpoints);
[/lua]
Sorry, you need to Log In to post a reply to this thread.