Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. 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 )
  2. if (!Player || !Player:IsValid() || !IsValid(Player)) then return end
  3.  
  4. if (!PlayerInfo || !PlayerInfo[1]) then
  5. 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 (...)
  6. PrintTable({...})
  7. tmysql.query("INSERT INTO `gta_fuel` (`uid`) VALUES ('" .. Player:UniqueID() .. "')");
  8. if (!Player || !Player:IsValid() || !IsValid(Player)) then return end
  9.  
  10. Player.CanSetupPlayer = true;
  11. timer.Simple(1, function()
  12. GAMEMODE.LoadPlayerProfile(Player); end)
  13. end);
  14. return;
  15. end
  16. if (PlayerInfo[1][2] == "John" && PlayerInfo[1][3] == "Doe") then Player.CanSetupPlayer = true; end
  17.  
  18. if (Player.CanSetupPlayer) then
  19. Msg("Allowing " .. Player:Nick() .. " to setup new player...\n");
  20. net.Start( "gta_newchar" )
  21. net.Send( Player )
  22. end
  23.  
  24. Player.joinTime = CurTime();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement