- if(dialogid == Auto)
- {
- switch(listitem)
- {
- case 0:
- {
- if(classid == 105 || classid == 106 || classid == 107 || classid == 269 || classid == 270 || classid == 271)// team grove
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- CreateVehicle(562, x+3,y,z, a, Verde, Verde, -1);
- printf("Auto Spawnata");
- PutPlayerInVehicle(playerid, 562, 0);
- }
- else if(classid == 102 || classid == 104 || classid == 105) // team ballas.
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- CreateVehicle(562, x+3,y,z, a, Viola, Viola, -1);
- printf("Auto Spawnata");
- PutPlayerInVehicle(playerid, 562, 0);
- }
- }
- }
- return 1;
- }