1. if(dialogid == Auto)
  2. {
  3. switch(listitem)
  4. {
  5. case 0:
  6. {
  7. if(classid == 105 || classid == 106 || classid == 107 || classid == 269 || classid == 270 || classid == 271)// team grove
  8. {
  9. new Float:x, Float:y, Float:z, Float:a;
  10. GetPlayerPos(playerid, x,y,z);
  11. GetPlayerFacingAngle(playerid, a);
  12. CreateVehicle(562, x+3,y,z, a, Verde, Verde, -1);
  13. printf("Auto Spawnata");
  14. PutPlayerInVehicle(playerid, 562, 0);
  15. }
  16. else if(classid == 102 || classid == 104 || classid == 105) // team ballas.
  17. {
  18. new Float:x, Float:y, Float:z, Float:a;
  19. GetPlayerPos(playerid, x,y,z);
  20. GetPlayerFacingAngle(playerid, a);
  21. CreateVehicle(562, x+3,y,z, a, Viola, Viola, -1);
  22. printf("Auto Spawnata");
  23. PutPlayerInVehicle(playerid, 562, 0);
  24. }
  25. }
  26. }
  27. return 1;
  28. }