Advertisement
gkkahjfhaf

Untitled

Jun 25th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. enum vehicleinfo
  2. {
  3. ORM: ORM_VID,
  4. VQL_ID,
  5. Savininkas[MAX_PLAYER_NAME],
  6. Modelis,
  7. Float:vx,
  8. Float:vy,
  9. Float:vz,
  10. Float:va,
  11. Spalva1,
  12. Spalva2
  13. };
  14.  
  15. new vInfo[MAX_PLAYERS][vehicleinfo];
  16.  
  17. public OnPlayerConnect(playerid)
  18. {
  19. LoadVehicle(playerid);
  20. return 1;
  21. }
  22.  
  23. stock LoadVehicle(playerid)
  24. {
  25. vInfo[playerid][ORM_VID] = orm_create("automobiliai", DbHandle);
  26.  
  27. vInfo[playerid][Modelis] = GetVehicleModel(playerid);
  28. GetPlayerName(playerid, vInfo[playerid][Savininkas], 24);
  29. orm_addvar_int(vInfo[playerid][ORM_VID], vInfo[playerid][VQL_ID], "VQL_ID");
  30. orm_setkey(vInfo[playerid][ORM_VID], "VQL_ID");
  31. orm_addvar_string(vInfo[playerid][ORM_VID], vInfo[playerid][Savininkas],24, "Savininkas");
  32. orm_addvar_int(vInfo[playerid][ORM_VID], vInfo[playerid][Modelis], "Modelis");
  33. orm_addvar_float(vInfo[playerid][ORM_VID], vInfo[playerid][vx], "vx");
  34. orm_addvar_float(vInfo[playerid][ORM_VID], vInfo[playerid][vy], "vy");
  35. orm_addvar_float(vInfo[playerid][ORM_VID], vInfo[playerid][vz], "vz");
  36. orm_addvar_float(vInfo[playerid][ORM_VID], vInfo[playerid][va], "va");
  37. orm_addvar_int(vInfo[playerid][ORM_VID], vInfo[playerid][Spalva1], "Spalva1");
  38. orm_addvar_int(vInfo[playerid][ORM_VID], vInfo[playerid][Spalva2], "Spalva2");
  39.  
  40. CreateVehicle(vInfo[playerid][Modelis],vInfo[playerid][vx],vInfo[playerid][vy],vInfo[playerid][vz],vInfo[playerid][va],vInfo[playerid][Spalva1],vInfo[playerid][Spalva2],-1);
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement