I did this:
Database looks like this:
[table="width: 500, class: grid, align: left"]
[tr]
[td]sid[/td]
[td]weapon_real_cs_awp[/td]
[td]weapon_real_cs_g3sg1[/td]
[td]weapon_real_cs_aug[/td]
[td]weapon_real_cs_xm1014[/td]
[/tr]
[tr]
[td]STEAM_0:0:0[/td]
[td]0[/td]
[td]1[/td]
[td]0[/td]
[td]2[/td]
[/tr]
[tr]
[td]STEAM_0:0:1[/td]
[td]3[/td]
[td]0[/td]
[td]2[/td]
[td]1[/td]
[/tr]
[/table]
[PHP]
s_wpns={title,disc,model,ent,weight,price}
table.insert(s_wpns,{"AWP","Powerfull sniper rifle","models/weapons/w_snip_awp.mdl","weapon_real_cs_awp",3,1000})
table.insert(s_wpns,{"G3SG1","Fast sniper rifle","models/weapons/w_snip_g3sg1.mdl","weapon_real_cs_g3sg1",3,70000})
table.insert(s_wpns,{"AUG","","models/weapons/w_rif_aug.mdl","weapon_real_cs_aug",2,70000})
table.insert(s_wpns,{"Xm1014","","models/weapons/w_shot_xm1014.mdl","weapon_real_cs_xm1014",2,70000})
table.insert(s_wpns,{"Pump shotgun","","models/weapons/w_shot_m3super90.mdl","weapon_real_cs_pumpshotgun",2,70000})
--etc
function GM:PlayerInitialSpawn( ply )
for k,v in pairs ( s_wpns ) do
ply:SetNWInt(v[4],sql.QueryValue("SELECT "..v[4].." FROM inventory WHERE sid = '"..ply:SteamID().."'"))
end
end
[/PHP]
may have what some other way?
Sorry, you need to Log In to post a reply to this thread.