Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tmysql.query("SELECT `steamid`, `rp_name_first`, `rp_name_last`, `time_played`, `cash`, `model`, `items`, `storage`, `skills`, `genes`, `formulas`, `organization`, `bank`, `vehicles`, `blacklists`, `ringtone`, `ammo_pistol`, `ammo_rifle`, `ammo_shotgun`, `fuelleft`, `lastcar`, `physgun`, `acccessory`, `accessory2`, `accessory3`, `rank`, `police_played` FROM `gta_users` WHERE `steamid`='" .. Player:SteamID() .. "'", function ( PlayerInfo )
- if (!Player || !Player:IsValid() || !IsValid(Player)) then return end
- if (!PlayerInfo || !PlayerInfo[1]) then
- tmysql.query("INSERT INTO `gta_users` (`id`, `uid`, `steamid`, `rp_name_first`, `rp_name_last`, `time_played`, `cash`, `model`, `items`, `skills`, `genes`, `formulas`, `organization`, `bank`, `vehicles`, `ringtones`, `ringtone`, `last_played`) VALUES ('" .. Player.SMFID .. "', '" .. Player:UniqueID() .. "', '" .. Player:SteamID() .. "', 'John', 'Doe', '5', '15000', '', '', '', '5;0;0;0;0;0;0', '', '0', '0', '', '', '1', '0')", function (...)
- PrintTable({...})
- tmysql.query("INSERT INTO `gta_fuel` (`uid`) VALUES ('" .. Player:UniqueID() .. "')");
- if (!Player || !Player:IsValid() || !IsValid(Player)) then return end
- Player.CanSetupPlayer = true;
- timer.Simple(1, function()
- GAMEMODE.LoadPlayerProfile(Player); end)
- end);
- return;
- end
- if (PlayerInfo[1][2] == "John" && PlayerInfo[1][3] == "Doe") then Player.CanSetupPlayer = true; end
- if (Player.CanSetupPlayer) then
- Msg("Allowing " .. Player:Nick() .. " to setup new player...\n");
- net.Start( "gta_newchar" )
- net.Send( Player )
- end
- Player.joinTime = CurTime();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement